博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux之 ssh连接服务器,WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
阅读量:6955 次
发布时间:2019-06-27

本文共 1504 字,大约阅读时间需要 5 分钟。

[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).

说明: Add correct host key in /root/.ssh/known_hosts to get rid of this message.  重点在这句话

分析: ssh登录过某机器后,因某机器有变动(更换ip等),再次登录不了,报错!!!

解决过程:

[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      ## 输入密码,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

转载地址:http://wnvil.baihongyu.com/

你可能感兴趣的文章
日志收集框架flume的安装及简单使用
查看>>
C++ class template argument deduction
查看>>
2013年国内优秀的开源CMS系统汇总
查看>>
h5全屏接口
查看>>
数据表的基本操作
查看>>
Keepass TAN 记录的使用
查看>>
C# 语言规范_版本5.0 (第0章 目录)
查看>>
hive基本操作与应用
查看>>
继续C#开发or转做产品
查看>>
drf分页器,url控制器,解析器,响应器
查看>>
Java数据结构与算法(11) - ch06递归(二分法查找)
查看>>
请利用filter()过滤出1~100中平方根是整数的数
查看>>
Java_JDBC_Oracle
查看>>
数据库求闭包,求最小函数依赖集,求候选码,判断模式分解是否为无损连接,3NF,BCNF...
查看>>
ab测试大并发错误
查看>>
js 对象toString()方法
查看>>
python面试题
查看>>
Java核心技术卷一基础知识-第5章-继承-读书笔记
查看>>
解决了64位 window 8英文版 office 2013 word繁简转换的问题( 看图)
查看>>
【机器学习】--贝叶斯网络
查看>>