4 ms·
In fact what you really want is not to use nc but ssh's -W option: ProxyCommand ssh -W %h:%p <gateway_machine
by ernesth 16y ago
In fact what you really want is not to use nc but ssh's -W option:
ProxyCommand ssh -W %h:%p <gateway_machine
- mcmatterson 16y agoInteresting -- I did not know about this one. Looks like it was implemented in OpenSSH 5.4, which isn't yet in Ubuntu LTS or OS X (the two environments where I spend most of my days), so it may be a little bleeding edge for general use just yet. Good to know, however.