Thursday, November 30, 2006

Using OpenSSH with a ssh Proxy

Here is how you can set up ssh on your linux machines to automatically bounce from one host to the next.  I believe that using a modification of this could work to use a regular proxy but I have to research that.

Add this to ~/.ssh/config
ProxyCommand ssh -a -x "nc 22"

Where is a ssh machine with better internet access to the remote host and is the final destination.  Now I just have to type 'ssh' to get all the way through to the final machine.  I can now forward X sessions, use scp, use FreeNX, with an easy configuration.