Sshconfig

From Attie's Wiki
(Difference between revisions)
Jump to: navigation, search
m
m
 
(One intermediate revision by one user not shown)
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
 +
    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
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox