Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In order to vnc from home into my work desktop running linux I have to take some quite complicated steps. I have to first connect to the work server linux box and from there I can connect to my work desktop. You can't connect directly to the work desktop at all from the outside world. To add to the problems the work computer has port 5900 filtered so I need can't connect on that port even from the work server.

I can work out how to do this from my home linux machine using ssh port forwarding (e.g. ssh -L) but how can I do it from windows?

share|improve this question

2 Answers 2

It sounds like you need a Repeater on your linux. It manages connections to other computers on the network (Proxy) by had a listening port. Then you can connect by using a proxy address (your Linux server's ip and the Repeater port) in the proxy field, and the name of the VNC server in the address field.

Download the Linux VNC Repeater: http://code.google.com/p/vncrepeater/downloads/list
Full guide; Not to setup Linux Repeater: http://www.uvnc.com/docs/uvnc-repeater.html

share|improve this answer

If you have your Linux machine set up properly, you can do it the same way on Windows by installing Cygwin, which has an OpenSSH package available. Just download the Cygwin setup.exe and make sure the openssh package is selected for installation.

share|improve this answer
    
I was hoping to avoid cygwin. Can it be done using putty? –  felix Jul 5 '13 at 0:32
    
PuTTY supports port forwarding via Connections -> SSH -> Tunnels, and it works fine for one hop at least. –  jjlin Jul 5 '13 at 4:26
    
How do you use that to forward 5900 on the work server to 5901 on the work desktop for example? –  felix Jul 5 '13 at 9:05
    
I thought you said you'd worked out how to do this on Linux, but if not, I'd suggest looking at superuser.com/questions/96489/ssh-tunnel-via-multiple-hops and use Plink.exe if you want to avoid OpenSSH. You can apply the same multi-hop concepts to the graphical PuTTY, but it'd be less automated -- I think you'd have to set up one session that forwards from the work server to the work desktop, and then another session that connects to the work desktop via the first tunnel. –  jjlin Jul 5 '13 at 18:46

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.