nima / site

Modular shell-scripting framework - 99% native bash, 1% phat!
http://nima.github.io/site/
5 stars 4 forks source link

Secure shell proxy command #32

Open nima opened 10 years ago

nima commented 10 years ago

The command currently used for ssh proxy depends on netcat being installed on the bounce host. As of OpenSSH v5.4, there is no need to do it this way as there is native support. Migrate!

The current/old method:

ProxyCommand="ssh ${bounce} nc %h.${tld} 22"

The new method can simply use:

ProxyCommand="ssh ${bounce} -W %h:%p"