🛠 WiFi sur la prise USB unique et SSH à distance

Raspberry Pi Model A (2013) — Board Sheet · intermediaire · Schéma : IMG-model-a-intermediaire-6-modela-wifi-ssh.svg — Raspberry Pi Model A sans prise Ethernet avec un petit dongle WiFi USB inséré dans l'unique port USB, liaison sans fil vers un routeur et un ordinateur portable exécutant SSH

Objectives

Hardware

Complete code

# /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
country=FR
network={
    ssid="MonReseau"
    psk="MotDePasseWiFi"
}

# Appliquer
sudo wpa_cli -i wlan0 reconfigure
sudo dhclient wlan0
ip -4 addr show wlan0

# Depuis le portable (le Model A n'a pas de MAC fixe en gadget, se fier au nom mDNS)
ssh pi@raspberrypi.local

Expected verification

ip -4 addr show wlan0 displays an address in the 192.168.x.x range; pinging the router works; the SSH session opens without a screen or keyboard connected to the Pi. >

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials