Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

WARNING appears in ssh connection server under linux: how to solve the problem with REMOTE HOST IDENTIFICATION HAS CHANGED

2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly explains "ssh connection server under linux appears WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED how to solve", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Next let the editor to take you to learn "ssh connection server under linux appears WARNING: how to solve REMOTE HOST IDENTIFICATION HAS CHANGED" bar!

[root@zk01 ~] # ssh localhost

@ @ @

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

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

SHA256:r86jc/Vu8phhiKKDSntetfkmksjQ606ZlUP8XNYe44U.

Please contact your system administrator.

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

Offending ECDSA key in / root/.ssh/known_hosts:10

Password authentication is disabled to avoid man-in-the-middle attacks.

Keyboard-interactive authentication is disabled to avoid man-in-the-middle attacks.

Permission denied (publickey,password,keyboard-interactive).

Description: Add correct host key in / root/.ssh/known_hosts to get rid of this message. The key point is this sentence.

Analysis: ssh logged on to a machine, due to changes in a machine (replacement of ip, etc.), can not log in again, report an error!

Resolution process:

[root@zk01 ~] # mv / root/.ssh/known_hosts / root/.ssh/known_hosts.bak

[root@zk01] # ssh-o StrictHostKeyChecking=no 172.16.38.130

Warning: Permanently added '172.16.38.130' (ECDSA) to the list of known hosts.

Root@172.16.38.130's password:

Last login: Sun Oct 1 12:02:21 2017 from 172.16.74.104

[root@zk01 ~] # ssh localhost # # enter the password, OK!

Warning: Permanently added 'localhost' (ECDSA) to the list of known hosts.

Root@localhost's password:

Last login: Sun Oct 1 12:04:59 2017 from zk01

At this point, I believe you have a deeper understanding of "ssh connection server under linux WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED how to solve", might as well come to the actual operation of it! Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report