Sshconfig
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 10: | Line 10: | ||
ServerAliveInterval 300 | ServerAliveInterval 300 | ||
ServerAliveCountMax 2 | ServerAliveCountMax 2 | ||
+ | ProxyCommand ssh user@accessible.com nc %h %p | ||
</source> | </source> |
Latest revision as of 16:18, 24 September 2014
The following is an example ~/.ssh/config
file.
Host dev HostName dev.example.com Port 22000 User attie IdentityFile ~/.ssh/attie@dev.example.com LocalForward 9906 127.0.0.1:3306 ServerAliveInterval 300 ServerAliveCountMax 2 ProxyCommand ssh user@accessible.com nc %h %p