Question

Can't login to droplet , i am a newbie user wanna learn to manage my own VPS on Digital Ocean

Posted July 25, 2014 3.7k views

i tried to login to my droplet.. i typed :

ssh root@ip-address

then appear this :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that a host key has just been changed.
The fingerprint for the ECDSA key sent by the remote host is
3f:f8:4b:83:8e:db:de:31:2e:b0:46:1f:29:56:0f:d3.
Please contact your system administrator.
Add correct host key in /home/satrio/.ssh/knownhosts to get rid of this message.
Offending ECDSA key in /home/satrio/.ssh/knownhosts:1
remove with: ssh-keygen -f "/home/satrio/.ssh/known_hosts" -R xxx.xxx.xxx.xxx (ip-server)
ECDSA host key for xxx.xxx.xxx.xxx has changed and you have requested strict checking.
Host key verification failed.

How to fix it ? I want to login as root. My droplet use UBUNTU 14.04 and Wordpress application. Please help. thank you.

1 comment

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.

×
1 answer

Hi there!

When you connect to a server via SSH the server’s “fingerprint” is saved in your ~/.ssh/known_hosts file. You will see this warning if the fingerprint for the server is different than the last time you connected to it. As the warning states, this could be a sign of a “man-in-the-middle attack.”

The server is identified by its IP address. So if you create a droplet, destroy it, and create a second one that has the same IP address, you will see this warning. In this case, you can safely ignore it. To remove the warning and connect to the new server, run:

ssh-keygen -f "~/.ssh/known_hosts" -R YOUR.IP.ADDRESS
ssh root@YOUR.IP.ADDRESS
  • Hi,

    I am facing the same issue. When I copy and paste:

    ssh-keygen -f “~/.ssh/known_hosts” -R YOUR.IP.ADDRESS

    with the ip of my droplet, I just get the message:

    No such file or directory. Any ideas what I have done wrong?

Submit an Answer