background
As mentioned in the Alibaba Cloud technical article, the SSH KEY recommends using the ED25519 encryption algorithm to generate the SSH KEY instead of the RSA encryption algorithm. Why?
reason
RSA and ED25519 are both commonly used encryption algorithms, but ED25519 has the following advantages over RSA:
Greater Security: ED25519 is more secure than RSA because it uses longer keys (256 bits) and better cryptographic properties. The security of the RSA encryption algorithm is based on the difficult factorization of large prime numbers, but with the development of computers, the security of RSA may be threatened. ED25519 uses elliptic curve cryptography, which has better security.
Faster key generation: ED25519 key generation is faster than RSA, which means you can create and use SSH keys faster.
Less storage space: ED25519 keys are shorter than RSA and take up less storage space.
Therefore, if you need a more secure, fast and efficient SSH key, ED25519 is a better choice. Meanwhile, while the RSA encryption algorithm is still widely used, more and more people are turning to ED25519 because it offers better security and performance.
usage
ssh-keygen -t ed25519 -C "[email protected]"
Enter the file alias to distinguish different platforms according to the prompt: id_ed25519_codeup_aliyun_com