Report this

What is the reason for this report?

How do I add SSH keys to my Droplet; when I thought I already did? (Error Message below)

Posted on June 9, 2015

Add correct host key in /Users/{$Username}/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/{$Username}/.ssh/known_hosts:5 ECDSA host key for {$IP_Address} has changed and you have requested strict checking. Host key verification failed.



This textbox defaults to using Markdown to format your 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.

Rather than adding it to known hosts, you will need to add it to authorized_keys:

key='YOUR_KEY_GOES_HERE'
echo "$key" > ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys

After reading through documentation I was able to get it working. Thank you @JonsJava

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.