🛠 Accès distant sans VPN : enregistrer un CM5 dans Raspberry Pi Connect

Raspberry Pi Compute Module 5 (compute-module-5) · debutant · Schéma : IMG-compute-module-5-debutant-3-raspberry-pi-connect-cm5.svg — un CM5 sur sa CM5IO Board dans un coffret, relié à Internet par un seul câble Ethernet ; un téléphone et un navigateur affichent la console Raspberry Pi Connect ; aucune règle de redirection de port n'est dessinée sur la box.

Objectives

A CM5 often ends up in a product: wall-mounted enclosure, technical cabinet, customer kiosk. Opening ports or setting up a VPN is then unacceptable. Raspberry Pi Connect, the official service, reverses the model: the CM5 initiates an encrypted outbound connection to the service, and you then connect from the browser or app — zero port forwarding, zero public IP. This tutorial covers installing the daemon, associating the device with your account, opening a remote SSH terminal, and verifying on the CM5 side that no ports are listening.

Hardware

Complete code

# 1) Installer le démon officiel Raspberry Pi Connect
curl -fsSL https://connect.raspberrypi.com/install -sSf | sudo sh

# 2) Configurer et associer l'appareil (une URL s'affiche à ouvrir dans le navigateur)
sudo raspberry-pi-connect configure

# 3) Vérifier le service
systemctl status raspberry-pi-connect --no-pager | head -6
journalctl -u raspberry-pi-connect -n 10 --no-pager

# 4) Depuis un autre appareil : ouvrir raspberryconnect.com dans un navigateur,
#    sélectionner l'appareil en ligne et lancer un terminal SSH.

# 5) Côté CM5, prouver qu'aucun port n'est exposé au monde :
sudo ss -tulpn | grep LISTEN

Expected verification

The device appears as “online” on the Raspberry Pi Connect dashboard; the remote terminal opens a real SSH session on the CM5; ss -tulpn shows only locally listening services (no port 22 open on the public interface — this is the whole point of the outbound model). After sudo reboot, the device comes back online in less than a minute.

Common errors

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials