You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

При успешном входе в VPS через SSH, на вашем локальном устройстве будет создана новая запись в файле known hosts с "fingerprint" данного сервера.

Но если вы переустанавливаете систему или меняете IP адрес сервера, то данная запись больше не будет подходить для вашего сервера и при попытке входа, вы столкнетесь с данной ошибкой:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
5a:52:16:46:b7:dc:31:11:3b:a2:2e:d7:12:cd:99:2a.
Please contact your system administrator.
Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
Offending key in /home/user/.ssh/known_hosts:8
RSA host key for ras.mydomain.com has changed and you have requested strict checking.
Host key verification failed.


Самый простой способ как с ней справится, это

The easiest way to deal with this error message would be to remove the "Offending key". In this example that would be the key 8 in our hosts file. To do this, execute the following command:

sed -i 8d ~/.ssh/known_hosts

Where "8" denotes the line in the hosts file to remove.

Now upon connecting you will receive the usual warning:

The authenticity of host '99.99.99.99 ()' can't be established.
ECDSA key fingerprint is 4e:10:42:39:53:85:7f:89:89:dc:89:84:8d:79:e7:ed.
Are you sure you want to continue connecting (yes/no)?

After confirming with "yes", the new fingerprint will be added to your known hosts and you will be logged in to your VPS.

(warning) If you receive this error and you have not reinstalled your server or requested IP change for it, please contact us via a support ticket

  • No labels