Skip to content

Instantly share code, notes, and snippets.

@lidio601
Last active August 29, 2015 14:02
Show Gist options
  • Save lidio601/73837adfe1caaa524c38 to your computer and use it in GitHub Desktop.
Save lidio601/73837adfe1caaa524c38 to your computer and use it in GitHub Desktop.
SSH Keygen for RSA authentication
KEYFILE='~/.ssh/newkey.key'
ssh-keygen -t rsa -C "user@email.com" -q -b 2048 -N "YOURPASSWORD" -f "$KEYFILE"
cat $KEYFILE.pub >~/.ssh/authorized_keys2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment