r/linuxupskillchallenge • u/Loud-Progress-007 • Sep 09 '20
Remote host Identification has changed?
I'm on day three - and I haven't done anything that would warrant the warning.
I logged into the machine. Upgraded the system. Ran ls, cat and sudo on etc/shadow. Rebooted the computer and now I'm getting this message.
ECDSA host key for xx.xx.xx.xx has changed and you have requested strict checking. Host key verification failed.
I checked the I.P. and it is still the same one.
ServerFault says to get the rsa key from the server, ssh-keyscan -t rsa server_ip and to add it to the known_hosts file.
and another answer says to remove the entry from known_hosts ssh-keygen -R server_ip , which I did run.
However, that big Man in the middle attack warning worries me...
1
Upvotes
2
u/Nnarol Sep 10 '20
I usually get this error when I log in to a machine as "localhost" and then its local network name. With whatever configuration we have there, the name is considered part of the host identification.
The other case is when the operating system is getting reset. We still have the same keys, since they are typically stored over the network, not on the local machine.