Question

ssh credential detail

when I created droplet, it came with /root/.ssh/id_ecdsa /root/.ssh/id_ed25519

Could you tell me what those are?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @yuri9163,

Those are your SSH keys. SSH keys are used for user authentication are usually stored in the user’s .ssh directory under the home directory. However, in enterprise environments, the location is often different. The default key file name depends on the algorithm, usually it’s id_rsa when using the default RSA algorithm. It could also be, for example, id_dsa or id_ecdsa.

Here is a bit more information about

/root/.ssh/idecdsa
/root/.ssh/ided25519

ecdsa - a new Digital Signature Algorithm standarized by the US government, using elliptic curves. This is probably a good algorithm for current applications. Only three key sizes are supported: 256, 384, and 521 (sic!) bits. We would recommend always using it with 521 bits, since the keys are still small and probably more secure than the smaller keys (even though they should be safe as well). Most SSH clients now support this algorithm.

ed25519 - this is a new algorithm added in OpenSSH. Support for it in clients is not yet universal. Thus its use in general purpose applications may not yet be advisable.

Regards, KDSys