Created
April 12, 2018 04:28
-
-
Save tkuennen/6372915021eec688f72ca376101e4044 to your computer and use it in GitHub Desktop.
A useful group of settings for ssh config files
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Connection Sharing | |
| ControlMaster auto | |
| ControlPath ~/.ssh/ssh_%h_%p_%r | |
| Control persistance | |
| ControlPersist 4h | |
| TCPKeepAlive no | |
| ServerAliveInterval 120 | |
| ServerAliveCountMax 3 | |
| # Specify identity | |
| IdentityFile /path/to/identity | |
| # SOCKS Proxy | |
| ssh -v -ND 8081 host | |
| # Reverse tunnel ssh -R | |
| 2222:localhost:22 user@host |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment