Sshconfig
From Attie's Wiki
(Difference between revisions)
m |
m |
||
(2 intermediate revisions by one user not shown) | |||
Line 7: | Line 7: | ||
User attie | User attie | ||
IdentityFile ~/.ssh/attie@dev.example.com | 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 | ||
</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