When I am logging in my droplet for the first time using password, I see the following :
The authenticity of host '138.197.19.221 (138.197.19.221)' can't be established.
ECDSA key fingerprint is SHA256:qwR9naUT7NA6RrLSnu9RQ/jR1fJ2K5eakv52ONEyuOE.
Are you sure you want to continue connecting (yes/no)?
My understanding is that I can find the same fingerprint for my droplet at the digitalocean website, and if they matches I am connecting to the right droplet.
Is my understanding correct? If yes, then where do I find the fingerprint of my droplet at the digital ocean website?
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.
It’s pretty simple, as long as you can get console access:
ssh-keygen -l -E md5 -f /etc/ssh/ssh_host_rsa_key.pub
https://github.com/lucaszanella/digital-ocean-fingerprint-fix
This is the simplest fix I could think about using already existing concepts
You can find your SSH Key fingerprints in the DigitalOcean Control Panel. Simply login and click on the avatar icon in the top right corner (there’s a dropdown arrow next to it). From there, click on Settings and then from the left side menu, click on Security.
Click below to sign up and get $100 of credit to try our products over 60 days!
See also: How do I validate the ECDSA key fingerprint of my newly-created Droplet?