Skip to content

Instantly share code, notes, and snippets.

@antila
Created June 8, 2015 14:16
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 antila/e642b6501bf5ba2a5d45 to your computer and use it in GitHub Desktop.
Save antila/e642b6501bf5ba2a5d45 to your computer and use it in GitHub Desktop.
My new public key
# Nuke my old keys
rm /home/aantila/.ssh/authorized_keys
# Grab new one
gpg2 --recv-keys 0A361939
gpgkey2ssh 700C8678 >> /home/aantila/.ssh/authorized_keys
# ... and add a comment
sed -i.bak s/COMMENT/"anders@antila.se-yubikey"/g /home/aantila/.ssh/authorized_keys
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment