LINUX-SSH-KNOWN_HOSTS-SSH Error

Source: Internet
Author: User

Log errors,
I've been doing this all night, Docker.
Because the use of the bridge, so the IP is the same, sometimes in the creation of the container name may also be in conflict with the previous, will be error
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@ 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, a host key has just been changed.

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

5b:82:47:82:ef:cf:76:96:63:a6:7c:ce:86:7f:eb:9b.

Please contact your system administrator.

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

Offending ECDSA Key In/root/.ssh/known_hosts:2

ECDSA host key for [192.168.0.141]:2222 had changed and you have requested strict checking.

Host Key verification failed.

Probably meant to be a secret key. What authentication error, cause cannot ssh link login,
The problem is that the current public key is automatically cached each time the link succeeds to SSH. The next time the link is automatically verified, if it is correct, the error pops up.
However, in a Docker environment, if you frequently regenerate Docker containers, it can be difficult to manage with SSH at this time.
A manual method is
Vim ~/.ssh/known_hosts go in and erase all records about the linked IP

The second one is to modify the configuration file
Vim ~/.ssh/config
650) this.width=650; "height=" http://b288.photo.store.qq.com/psb?/81c1194a-ff39-4e50-b1b1-40057b06260f/"src=". qiyvnje8tmlidzzgxmczviwc918ciuhuu58xd5yipc!/b/dcabaaaaaaaa&bo=aqflaaaaaaafaaa! "width=" 361 "style=" vertical-align:top; "alt=" dcabaaaaaaaa&bo=aqflaaaaaaafaaa! "/>
Write two lines of information, restart the system, will not automatically record the secret key,
Mainly facilitates the automatic management of Docker later, but the relative reduction of security


This article is from the "11627223" blog, please be sure to keep this source http://11637223.blog.51cto.com/11627223/1911970

LINUX-SSH-KNOWN_HOSTS-SSH Error

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.