![]() SSH to the iMac (via the Raspberry Pi) and then SSH to the Raspberry Pi from the iMac using the following: ssh -R 5900:localhost:5900 - this will forward port 5900 (the VNC port), making it available on the Raspberry Pi on the same port.This will allow remotely forwarded ports to bind to all interfaces. On the Raspberry Pi under /etc.ssh/sshd_config, make sure that GatewayPorts is set to yes ( GatewayPorts yes) if you needed to change it, then go ahead and restart SSHd (possibly service sshd restart).There are times when you need to remote into a Linux desktop. The following is mainly for me, but hopefully helpful to others: If your network doesnt allow connections into the default VNC port 5901, you can tunnel it through SSH. This is fine for SSH, but when I want to use other things (for example, VNC) it can be a challenge. However, you may also want a GUI to more easily perform administration of your Raspberry Pi (some things are just easier with a GUI). ![]() The vast majority of my examples going forward can be accomplished using just the SSH connection and the Bash shell on the Raspberry Pi. Usually I access it using SSH, via a Raspberry Pi: +-+ +-+ Enable VNC for GUI-based access to your Raspberry Pi. Often when I’m away from home I leave my iMac on in case I need to grab anything from it remotely, plus it’s ready to go when I get home.
0 Comments
Leave a Reply. |