Skip to content

Instantly share code, notes, and snippets.

@tkuennen
Created April 12, 2018 04:28
Show Gist options
  • Select an option

  • Save tkuennen/6372915021eec688f72ca376101e4044 to your computer and use it in GitHub Desktop.

Select an option

Save tkuennen/6372915021eec688f72ca376101e4044 to your computer and use it in GitHub Desktop.
A useful group of settings for ssh config files
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