Skip to content

Instantly share code, notes, and snippets.

@peterpme
Created November 11, 2016 17:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save peterpme/143d4ee36b2f4ece1b9e45243935ae03 to your computer and use it in GitHub Desktop.
Save peterpme/143d4ee36b2f4ece1b9e45243935ae03 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