Der Raspberry Pi ist mit der statischen IP 192.168.100.100 vorkonfiguriert und empfängt auf Port 22 eingehende SSH-Verbindungen.


Zusätzlich läuft ein VNC Server, der unter Port 5900 erreichbar ist, allerdings nur für Verbindungen von localhost.


Um eine Verbindung zum Raspberry herzustellen, muss zuerst die eigene IP im gleichen Subnetz 192.168.100.X eingerichtet werden.


Danach muss ein Tunnel hergestellt werden, um den internen Port 5900 auf die eigene Maschine weiter zu leiten. Dies kann mit folgendem Befehl mittels der Kommandozeile unter *nix-Systemen oder mittels PuTTY unter Windows erreicht werden:


user@host:~$ ssh -L 5900:localhost:5900 kinemic@192.168.100.100


Nun kann man sich mit jedem VNC-Client unter folgender Adresse zum Pi verbinden: localhost:5900


Das folgende Video erklärt den Vorgang:





The Raspberry Pi is preconfigured with the static IP 192.168.100.100, listening on port 22for incoming SSH connections.


Additionally, a VNC server is running, listening on port 5900, but only for connections from localhost.


To connect the Raspberry, you first need to setup your own IP in the same subnet 192.168.100.X.


Afterwards you need to set up a tunnel, forwarding the internal port 5900 to your machine. You can do this using the command line on *nix systems, or using PuTTY on Windows systems.


user@host:~$ ssh -L 5900:localhost:5900 kinemic@192.168.100.100


Afterwards, you can use any VNC client to connect to the Pi on address localhost:5900


A visualization of this process on MacOS can be seen here (enable subtitles for an English transcription):