I have changed droplet SSH password. Now when I try to SSH, It gives me warning.
(Without understanding the Digital Ocean specifics) the warning is a common one, and is as per my guess.
The SSH server has its own key (which includes the private key). The server provides the associated public key to you the first time you connect to it - which your ssh client stores. Future SSH attempts will use this to check you ate speaking to the same server.you initially spoke to to thwart man-in-the-middle attacks.
When the servers host key changes (which it would.not do if the root password changed, but would do it the droplet was recreated - which may be related to how DO is changing it) you gret a warning as described by you.
The solution is to remove your stored host key for that system. (In Unixy versions of SSH this is stored in an authorised_keys file, and you can find and remove the offending line. There are other ways.as well dependong on your SSH client.)
Note that none of this has to do with IPs - the IP address.of the server can change without modifying this (host) key.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments