Since I rather like to have options, I’ve decided to augment my usual SSH /w option of X forwarding to the option of VNC as well.
Objective: connect to my netbooks X session using VNC, tunnelled over SSH.
Since my netbook runs a GNOME centric distribution, I’m using the “Remote Desktop” preferences program on “System -> Preferences”. If you’re like me and to damn lazy to hunt and peck, this just runs the program ‘vino-preferences’. On here it’s possible to setup VNC access to your desktop. In essence, it just runs vino when you login. There are loads of good and bad write ups on VNC server setup and 3 or 4 click setup is good enough for me.
My iptables rules pretty much block such things as incoming VNC requests, which is good because I don’t want the session exposed across the network interface. Pretty much all there is for accessing my netbook is the SSH port.
Now on another system, it’s possible to connect using SSH forwarding. This gains us both encryption for the VNC session and less port exposure; that is good for security.
PuTTY client setup:
- Load/create your session in PuTTY
- Go to SSH -> Tunnels
- Add a port forwards
- source port: 5900
- destination: localhost:5900
- Login to the system using PuTTY.
- ssh -L 5900:localhost:5900 username@host
1 thought on “VNC over SSH, the idiots guide.”
I know this is the most inappropriate place to post this but I am short on time.
Happy birthday for three days ago!
Hope you had a great time.
Almost finished with exams, hope to catch up soon.