En fait, je souhaite juste pouvoir me connecter avec vnc a partir d'une tablette sur la Raspberry et pouvoir accéder au serveur web de la Raspberry (actuellement je suis connecté via Ethernet et me connecte sur le serveur et par vnc via raspberrypi.local).
/etc/ssh/sshd_config contient :
Code : Tout sélectionner
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768
# Logging
SyslogFacility AUTH
LogLevel INFO
# Authentication:
LoginGraceTime 120
PermitRootLogin yes
StrictModes yes
RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys
# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes
# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no
# Change to no to disable tunnelled clear text passwords
#PasswordAuthentication yes
# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
#MaxStartups 10:30:60
#Banner /etc/issue.net
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
Subsystem sftp /usr/lib/openssh/sftp-server
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and
# PasswordAuthentication. Depending on your PAM configuration,
# PAM authentication via ChallengeResponseAuthentication may bypass
# the setting of "PermitRootLogin without-password".
# If you just want the PAM account and session checks to run without
# PAM authentication, then enable this but set PasswordAuthentication
# and ChallengeResponseAuthentication to 'no'.
UsePAM yes
Quel type de connexion serait le mieux? Ad-hoc ou Access point ?
EDIT 25/06: Résolu en créant un Access Point
Procédure de création d'un Access Point (clé Ralink RT5370 visible avec la commande
lsusb)
1. Mise à jour
2. Installer hostapd :
3. Modifier le fichier interface grâce a la commande :
Tout supprimer et coller :
Code : Tout sélectionner
auto lo
face lo net loopback
auto eth0
allow-hotplug eth0
#iface eth0 inet manual
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.200.1
netmask 255.255.255.0
network 192.168.200.0
broadcast 192.168.200.255
up iptables-restore < /etc/iptables.ipv4.nat
Sauvegarder et Quitter (CTRL + X puis O et ENTRER).
4. Editer le fichier hostapd :
Remplacer la ligne
par :
Sauvegarder et Quitter (CTRL + X puis O et ENTRER).
5. Créer le fichier hostapd.conf :
et coller :
Code : Tout sélectionner
interface=wlan0
driver=nl80211
ssid=RaspberryPI #Nom du réseau wifi
hw_mode=g
channel=6
beacon_int=100
auth_algs=3
wmm_enabled=1
Sauvegarder et Quitter (CTRL + X puis O et ENTRER).
6. Installer dnsmasq :
7. Editer le fichier dnsmasq.conf :
et coller en début de fichier :
Code : Tout sélectionner
interface=wlan0
dhcp-range=192.168.200.100,192.168.200.200,255.255.255.0,6h
Sauvegarder et Quitter (CTRL + X puis O et ENTRER).
8. Redémarre la Raspberry :