Sshconfig
From Attie's Wiki
(Difference between revisions)
m |
m |
||
Line 8: | Line 8: | ||
IdentityFile ~/.ssh/attie@dev.example.com | IdentityFile ~/.ssh/attie@dev.example.com | ||
LocalForward 9906 127.0.0.1:3306 | LocalForward 9906 127.0.0.1:3306 | ||
+ | ServerAliveInterval 300 | ||
+ | ServerAliveCountMax 2 | ||
</source> | </source> |
Revision as of 10:13, 21 May 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