Skip to content

Instantly share code, notes, and snippets.

@codatory
Created August 16, 2011 18:45
Show Gist options
  • Save codatory/1149830 to your computer and use it in GitHub Desktop.
Save codatory/1149830 to your computer and use it in GitHub Desktop.
# SSH Connection pooling for faster additional connections to a machine
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r
# This makes subsequent connections go faster
ControlPersist 2h
# Make it so ssh-ing from one server to another passes keys around automagically
ForwardAgent yes
# Get rid of SSH connection delays
GSSAPIAuthentication no
# Stop timing out connections
ServerAliveInterval 300
ServerAliveCountMax 20
# Use less encryption on servers I cant get to off-network (blowfish-cbc is the fastest supported encryption by rubys net::ssh for capistrano)
Host nf* 10.* 172.* 192.168.*
Ciphers blowfish-cbc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment