Skip to content

Instantly share code, notes, and snippets.

@lkoudal
Forked from peterpme/config
Created May 27, 2017 19:59
Show Gist options
  • Select an option

  • Save lkoudal/e448b6011d2e0676ff86fdfaf3a16272 to your computer and use it in GitHub Desktop.

Select an option

Save lkoudal/e448b6011d2e0676ff86fdfaf3a16272 to your computer and use it in GitHub Desktop.
SSH Config Taken From Paul Irish. Thanks Paul!
# symlink to ~/.ssh/config
Host github.com
ControlMaster auto
ControlPersist 120
Host *
# Always use SSH2.
Protocol 2
# Use a shared channel for all sessions to the same host,
# instead of always opening a new one. This leads to much
# quicker connection times.
ControlMaster auto
ControlPath ~/.ssh/control/%r@%h:%p
ControlPersist 1800
# also this stuff
Compression yes
TCPKeepAlive yes
ServerAliveInterval 20
ServerAliveCountMax 10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment