Skip to content

Instantly share code, notes, and snippets.

@intrepidws
Last active December 30, 2019 21:55
Show Gist options
  • Save intrepidws/f8703f77282fb0e8e85a5a2ca26fe280 to your computer and use it in GitHub Desktop.
Save intrepidws/f8703f77282fb0e8e85a5a2ca26fe280 to your computer and use it in GitHub Desktop.

!!! SHOULD USE PASSWORD !!!

Generate an SSH key, using PEM (and not the new default RFC4716): ssh-keygen -m PEM -t rsa -b 4096 -C "[email protected]"

For an older key that needs to be converted to PEM, run this: ssh-keygen -p -m PEM -f ~/.ssh/id_rsa

To copy the public key to the clipboard, do: pbcopy < ~/.ssh/id_rsa.pub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment