The ssh-keygen command
OpenSSH authentication key utility 1 example from the lessons of the IVski Linux Playground — try them in the terminal next to them.
Options in the examples
-C comment- Provides a new comment.
-t ecdsa | ecdsa-sk | ed25519 | ed25519-sk | rsa- Specifies the type of key to create. The possible values are “ecdsa”, “ecdsa-sk”, “ed25519 (the default),” “ed25519-sk”, or “rsa”.
Examples
ssh-keygen -t ed25519 -C "your@email.com"