On 2012-11-29 23:05, Mike Miller wrote: > On Thu, 29 Nov 2012, Jima wrote: > >> On 2012-11-29 22:27, Mike Miller wrote: >> >>> UltraVNC allows for some kinds of encryption. Can the xvnc4viewer be >>> used with the encryption, or do you just have to run UltraVNC >>> unencrypted? I usually use Xvnc with -localhost and then use ssh >>> portforwarding to create an SSH tunnel to connect through, but I'm >>> not sure of how to do that when the VNC server is running on Windows. >> >> PuTTY with a remote port-forward? I do similar for Synergy. > > I don't understand how that works. I have a VNC server on a Windows box > and PuTTY on the same Windows box, and I have the VNC viewer on a Linux > box. How do I connect from Linux to the VNC session on Windows using > PuTTY when PuTTY is on the Windows machine? 1. Open PuTTY 2. Enter host name/IP address of Linux box 3. Go under Connection -> SSH -> Tunnels 4. Source port: 25901 5. Destination: 127.0.0.1:5901 6. Select "Remote" radio button 7. Click "Add" button 8. (optional) Go back to Session and save 9. Click "Open" button 10. Log in 11. Run `netstat -anp | grep 25901` on the Linux box -- ta da! Caveat: AllowTcpForwarding may need to be enabled in sshd_config. FWIW, this is the feature provided by OpenSSH's -R flag. Jima