Generate SSH-Keys with ed25519

Ed25519 is a public key algorithm that’s a safer and more efficient alternative to its predecessors, such as RSA and ECDSA. It is considered best practice to use Ed25519 for SSH key generation due to several reasons. Firstly, it uses a modern elliptic curve algorithm that has been designed to avoid potential weaknesses and implementation pitfalls, improving the overall security of your SSH connections. Secondly, Ed25519 provides a significantly shorter key size while maintaining equivalent security to longer keys, which makes it more efficient in terms of processing power and network bandwidth. Finally, the algorithm has been designed with performance in mind, which means faster key generation, signing, and verification. This translates into improved session setup times and reduced server loads, leading to a better overall user experience.

You can generate a ed25519 keypair by using the following command on a unix device:

ssh-keygen -t ed25519 -C "[email protected]" -f ./key