🛠 Connexion WiFi station et administration en SSH

Raspberry Pi 3 Model A+ (2018) — Board Sheet · intermediaire · Schéma : IMG-model-3a-plus-intermediaire-3-model3a-wifi-ssh.svg — Raspberry Pi 3 A+ (sans port Ethernet) connecté en 802.11ac 5 GHz à une box, terminal SSH distant via raspberrypi.local

Objectives

Configure the Raspberry Pi 3 A+ as a WiFi station — its only native network, as the board has no Ethernet port — then connect to it via SSH. The IEEE 802.11b/g/n/ac module covers 2.4 and 5 GHz, with Bluetooth 4.2/BLE; the radio module is FCC modular certified.

Hardware

Complete code

# 1) Préparer la carte : Raspberry Pi Imager permet d'enregistrer le WiFi
#    (préconfiguration) ; sinon, sur la partition boot :
sudo tee /boot/firmware/wpa_supplicant.conf > /dev/null <<'EOF'
country=FR
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
    ssid="MonReseau"
    psk="MotDePasseWifi"
}
EOF
# 2) Activer SSH : créer le fichier vide « ssh » sur la partition boot
sudo touch /boot/firmware/ssh
# 3) Après boot : vérifier l'association et l'IP
sudo wpa_cli status | egrep 'ssid|wpa_state|freq'
ip -4 addr show wlan0
# 4) Depuis le PC, via mDNS/avahi (pas d'Ethernet, pas de DHCP filaire possible)
ssh pi@raspberrypi.local

Expected verification

wpa_cli status displays wpa_state=COMPLETED with the network frequency (e.g., 5180 MHz for 5 GHz); ssh pi@raspberrypi.local opens a shell. ping -c3 1.1.1.1 confirms Internet connectivity.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials