Skip to content

Instantly share code, notes, and snippets.

@krasnoukhov
Created November 4, 2013 20:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krasnoukhov/7309057 to your computer and use it in GitHub Desktop.
Save krasnoukhov/7309057 to your computer and use it in GitHub Desktop.
Proper ssh config
# Make it so ssh-ing from one server to another passes keys around automagically
Host *
ForwardAgent yes
# Get rid of SSH connection delays
GSSAPIAuthentication no
# Stop timing out connections
ServerAliveInterval 300
ServerAliveCountMax 20
ConnectTimeout 60
ControlMaster auto
ControlPath /tmp/%r@%h:%p
ControlPersist yes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment