Sshconfig
From Attie's Wiki
(Difference between revisions)
(Created page with "The following is an example <code>~/.ssh/config</code> file. <source lang="bash"> Host dev HostName dev.example.com Port 22000 User developer </source>") |
m |
||
(3 intermediate revisions by one user not shown) | |||
Line 5: | Line 5: | ||
HostName dev.example.com | HostName dev.example.com | ||
Port 22000 | Port 22000 | ||
− | User | + | 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 | ||
</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