On Wed, 22 May 2013, Lars Noodén wrote: > One way you could try is like this[1]: > > ssh -L 5432:localhost:5432 \ > -o 'ProxyCommand=ssh -W %h:%p pub1.example.org' \ > devel.example.org
As a follow up here is a method that should work for older versions of ssh: ssh -L 5432:localhost:5432 -o HostKeyAlias=devel.example.org \ -o ProxyCommand="ssh %h nc devel.example.org 22" \ pub1.example.org The netcat mode (-W) was added fairly recently. > [1] https://en.wikibooks.org/wiki/OpenSSH/Cookbook/Proxies_and_Jump_Hosts Regards, /Lars