Re:SSH Multiplexing & other OpenSSH Tricks
by fragmede on Sunday August 22, 2010 @12:17AM
(#1624208)
'-t' is also useful if you have machines behind a NAT you want to get to:
ssh -t gateway.example.com ssh protected_machine
[ Parent
| on HN ]
Or you could add the following to your ~/.ssh/config instead:
Host protected_machine other_protected_machine
ProxyCommand /usr/bin/ssh gateway.example.com /bin/nc -w 3700 %h %p
(Assumes you have /bin/nc installed on your gateway.)