🛠 Configurer Ethernet et se connecter en SSH

Orange Pi PC (Allwinner H3) · intermediaire · Schéma : IMG-orangepi-pc-intermediaire-3-opipc-ethernet-ssh.svg — Orange Pi PC relié par câble RJ45 10/100 au routeur (pas de WiFi sur ce modèle), session SSH établie depuis un ordinateur, LED link de l'EMAC interne du H3 mise en évidence.

Objectives

Make the Orange Pi PC usable without a screen: obtain an IP address via DHCP on the Ethernet port, verify that the link is indeed at 100 Mbit/s (the H3 integrates a 10/100 PHY only — never gigabit), then connect via SSH. Since the board has neither WiFi nor Bluetooth (unlike the PC Plus), an RJ45 cable or a USB dongle are the only network options.

Hardware

Complete code

  1. First boot: create the account at the console (HDMI or serial), then:
# Vérifier l'interface (le nom peut être end0 ou eth0 selon l'image)
ip -br link
sudo dhclient -v end0 2>/dev/null || sudo dhclient -v eth0
ip -br addr                      # noter l'adresse 192.168.x.x
  1. Check the actual link speed (the internal PHY is 10/100 MII):
sudo apt install ethtool
sudo ethtool end0 | egrep 'Speed|Duplex|Link'
# Attendu : Speed: 100baseT/Full — si 10baseT, câblage/duplex à vérifier
  1. Enable and secure SSH:
sudo systemctl enable --now ssh
# Trouver la carte sur le réseau depuis le PC :
ssh armbian@192.168.1.57        # mot de passe défini au premier boot
# Clé publique plutôt que mot de passe :
ssh-copy-id armbian@192.168.1.57
sudo sed -i 's/^#*PasswordAuthentication.*/PasswordAuthentication no/' /etc/ssh/sshd_config
echo 'PermitRootLogin no' | sudo tee -a /etc/ssh/sshd_config
sudo systemctl restart ssh
  1. A fixed address on the router side (static DHCP) is recommended rather than a local static IP.

Expected verification

ip -br addr displays an IPv4 address in state UP; ethtool indicates 100baseT/Full; SSH connection works via key without a password; after reboot, the board is reachable again.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials