I used to use SSH to log on to the company's server! However, today it went on strike. As usual, enter the command in the terminal to log on to the server: sudossh-lroot192.168.0.88sorry, which prompts the following information: @@@@@@@@@@@@@@@@@@@&
I used to use SSH to log on to the company's server! However, today it went on strike.
Enter commands on the terminal to log on to the server as usual:
- Sudo ssh-l root192.168.0.88
Sorry, which prompts the following information:
- @ WARNING: remote host identification has changed! @
- It is possible that someone is doing something nasty!
- Someone cocould 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 fingerprintForThe RSA key sent by the remote host is
- 51:58: C2: b3: d3: 7a: e6: bb:20: Bd: 5b:37: A1:87: Cc: de.
- Please contact your system administrator.
- Add correct host key in/root/. ssh/known_hosts to get ridThisMessage.
- Offending key in/root/. ssh/known_hosts:1
- RSA host keyFor 192.168.0.88Has changed and you have requested strict checking.
- Host key verification failed.
Linux is good. If there is an error, it will prompt you where the error is. According to the printed information, I solved the problem.
Use a superuser to enter the root/directory:
- Su
Enter the superuser password to enter the/root/directory:
- Cd/root
View all the files under the Directory and find the. ssh directory. Go to it!
- Ls-al
- Cd. ssh/
There is a file known_hosts under this directory. Use vim to open the file:
- Vim known_hosts
Delete the content. If you are still afraid of errors, you can back up the content before deleting it!
Log On again using SSH. The following information is displayed:
- The authenticity of host'1970. 168.0.88 (192.168.0.88 )'Can't be established.
- RSA key fingerprint is51:58: C2: b3: d3: 7a: e6: bb:20: Bd: 5b:37: A1:87: Cc: de.
- Are you sure you wantContinueConnecting (yes/no )?
Yes! Done!