[olug] VNC/SSH tunnel

Eric P eric.maillist at gmail.com
Tue Oct 21 02:29:28 UTC 2008


David Walker wrote:
> ~/.ssh/config (settings for your profile only) and/or 
> /etc/ssh/ssh_config (settings for entire machine) are settings for the 
> ssh *client*, not the *server*.  (/etc/ssh/sshd_config is for the server)
> 
> Once you change the setting in one of those files, the ssh command that 
> vnc (with via) uses will use the alternate port.  Use the lines below to 
> specify that you want to use port 2299 for all outgoing ssh connections 
> except for connections to the specified IP, in which case you want to 
> use port 2211.
> 
> Host *
>         Port 2299
> 
> Host 192.168.1.106
>         Port 2211
>>
Ah... I apologize, David.

That lone 'd' in the file name sure makes a difference (ssh_config vs. sshd_config)

Thanks for the example too.  That's just what I needed.

Eric P.



More information about the OLUG mailing list