Linux @ Short public notes


VNC through a SSH tunnel

Here's a pretty good guide on the subject. If that site is down you can get a PDF of the information here.

If you don't want to use putty for SSH tunneling, you can use the following command in a terminal:
ssh -L 5902:<IP/DOMAIN>:5902 user@<IP/DOMAIN>
(Parts tagged as bold and italic you'lll have to exchange with your own setup of course)

If you want to set up your Android device to connect, you'll need a SSH client for Android, like for example ConnectBot. Use it to connect to the server, log in, click Menu, click on Port Forwards, click Menu, click Add Port Forwards, choose (from the example) 5902 in source port and localhost:5902 in destination, and you should be ready to go. Then you just need a VNC client on your Android device, like RealVNC (or a free app if you can't or won't pay for apps).