Linux SSH telnet Error and resolution Warning:remote HOST identification has changed!

Source: Internet
Author: User

Problem

[Email protected]_exercise mnt]# SCP [email protected]:/etc/profile.d/motd1.sh/etc/profile.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@ warning:remote HOST Identification has changed! @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

IT is POSSIBLE this SOMEONE is DOING SOMETHING nasty!

Someone could is eavesdropping on your right now (Man-in-the-middle attack)!

It is also possible, the RSA host key has just been changed.

The fingerprint for the RSA key sent by the remote host is

c4:8b:39:c7:25:ff:dd:e3:8f:56:d4:d6:1b:8b:98:5b.

Please contact your system administrator.

Add correct host key in/root/.ssh/known_hosts to get rid of the this message.

Offending key In/root/.ssh/known_hosts:4

RSA host key for 172.16.40.240 had changed and you have requested strict checking.

Host Key verification failed.

[[Email protected]_exercise mnt]# ssh 172.16.40.240

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@ warning:remote HOST Identification has changed! @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

IT is POSSIBLE this SOMEONE is DOING SOMETHING nasty!

Someone could is eavesdropping on your right now (Man-in-the-middle attack)!

It is also possible, the RSA host key has just been changed.

The fingerprint for the RSA key sent by the remote host is

c4:8b:39:c7:25:ff:dd:e3:8f:56:d4:d6:1b:8b:98:5b.

Please contact your system administrator.

Add correct host key in/root/.ssh/known_hosts to get rid of the this message.

Offending key In/root/.ssh/known_hosts:4

RSA host key for 172.16.40.240 had changed and you have requested strict checking.

Host Key verification failed.

Analysis

Known_hosts is a file that records the public key of the remote host, before the system is re-installed, and the saved public key is not the system's public key, the SSH link will first verify the public key, if the public key is not correct, then will be error.

"Solution"

Method one: [email protected]_exercise mnt]# vim ~/.ssh/known_hosts

Delete the 172.16.40.240 information about RSA.

Method Two: Ssh-keygen-r 172.16.40.240


This article from "Doublelinux" blog, declined reprint!

Linux SSH telnet Error and resolution Warning:remote HOST identification has changed!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.