Skip to content

Instantly share code, notes, and snippets.

@risan
Last active March 19, 2023 04:26
Show Gist options
  • Star 23 You must be signed in to star a gist
  • Fork 11 You must be signed in to fork a gist
  • Save risan/7c84941067171cef79944978f42b77c6 to your computer and use it in GitHub Desktop.
Save risan/7c84941067171cef79944978f42b77c6 to your computer and use it in GitHub Desktop.
Generate SSH key with Ed25519 key type
ssh-keygen -o -a 100 -t ed25519 -f ~/.ssh/id_ed25519 -C "john@example.com"
@hudsantos
Copy link

hudsantos commented Aug 13, 2021

Good one! RSA no more!! Thanks for sharing.

Just no need the -o for new format in this case. As you said in your article "Actually, this option is implied when you specify the key type as ed25519."

man ssh-keygen says "Ed25519 keys always use the new private key format":

 -o      Causes ssh-keygen to save private keys using the new OpenSSH format rather than the more compatible PEM format.  The new format has increased resistance to brute-force password cracking but is not supported by versions of OpenSSH prior to 6.5.  Ed25519 keys always use the new private key format.

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