The current standard It uses elliptic curve cryptography
The old algorithm
ssh-keygen -t ed25519 -C "your_email@example.com"
ssh-keygen will generate a public-private key pair:
id_ed25519
id_ed25519.pub
the -C flag is for comments
-C