🛠 Configuration Ethernet et accès SSH

Raspberry Pi 3 Model B (model-3b) · intermediaire · Schéma : IMG-model-3b-intermediaire-3-model3b-ethernet-ssh.svg — Raspberry Pi 3 Model B en tête-à-tête sur le réseau : prise RJ45 100 Mbit (LAN9514 partagé avec l'USB) reliée au routeur, client SSH sur un ordinateur

Objectives

Install and use a Raspberry Pi 3 Model B "headless" (without a monitor or keyboard): prepare the card with SSH enabled, connect to it via SSH from a computer, configure a network hostname, and understand the peculiarity of the 3B's Ethernet port — a 10/100 Mbit interface via the LAN9514 chip, which shares the USB 2.0 bus with the 4 USB ports.

Hardware

Complete Code

# 1) Graver l'image avec Imager ; dans les réglages personnalisés :
#    hostname=raspberrypi, activer SSH, créer l'utilisateur, Wi-Fi si besoin.

# 2) Après boot, depuis l'ordinateur (mDNS fourni par avahi) :
ssh pi@raspberrypi.local
#   ou trouver l'IP d'abord :
#   avahi-browse -a | grep rasp   /   regarder le bail DHCP de la box
ssh pi@192.168.1.50

# 3) Sur le Pi : vérifier le lien Ethernet et le débit
ip -br addr show eth0        # ex. 192.168.1.50/24 UP
cat /sys/class/net/eth0/speed  # 100 (Mb/s maximum sur le 3B)

# 4) Copier des fichiers par-dessus SSH
scp site/data/tutorials/model-3b.json pi@raspberrypi.local:~/

# 5) Clé publique pour ouvrir SSH sans mot de passe
ssh-copy-id pi@raspberrypi.local

Expected Verification

ssh pi@raspberrypi.local opens a session after the first password. ip -br addr show eth0 displays the IP address and the UP status; cat /sys/class/net/eth0/speed returns 100. scp transfers files without intervention. After ssh-copy-id, a new connection works without a password. A ping raspberrypi.local from the computer responds — mDNS resolution (avahi) is operational.

Common Errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials