Skip to content

Instantly share code, notes, and snippets.

@eynopv
Created September 16, 2022 07:30
Show Gist options
  • Save eynopv/7acb05423bcad1397c73eeaa751f05f2 to your computer and use it in GitHub Desktop.
Save eynopv/7acb05423bcad1397c73eeaa751f05f2 to your computer and use it in GitHub Desktop.

SSH key

Generate

To generate ssh key with ed25519 use:

$ ssh-keygen -t ed25519 -C "<email>"

If you want to use rsa for reasons like legacy system, then do it with at least 4096 bits:

$ ssh-keygen -t rsa -b 4096 -C "<email>"

Why choose ed25519 instead of rsa?

rsa concidered less secure and ed25519 keys are shorter for same level of security, which makes them faster.

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