Skip to content

Instantly share code, notes, and snippets.

@abhiomkar
Created June 16, 2011 10:47
Show Gist options
  • Save abhiomkar/1029038 to your computer and use it in GitHub Desktop.
Save abhiomkar/1029038 to your computer and use it in GitHub Desktop.
SSH Snippets
# SSH Keygen - Protocol 2
ssh-keygen -t rsa -b 2048 -C "username macbook/YYYY-MM-DD" -f ~/.ssh/id_rsa
# Reuse the existing ssh connection
# add these 3 lines to ~/.ssh/config
host *
controlmaster auto
controlpath /tmp/ssh-%r@%h:%p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment