当前位置:网站首页>ssh时提示“WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED”
ssh时提示“WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED”
2022-07-22 11:03:00 【panfei263031】
本文转载自:known_hosts文件作用,以及常见问题
当遇到以下问题:
[email protected]:~# ssh 192.168.20.46
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:6C6zDl5/8R8dUGhQVW8YjCpGN6wj+a95LgyoUm7B6bI.
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:13
ECDSA host key for 192.168.20.46 has changed and
时,千万不要直接删除known_hosts文件,否则再ssh连接其他的linux设备的时候,又要重新输入yes,但是当远程设备多的时候,输入yes也是一个比较大的工作量!!
输入yes后,ssh会将对方的公钥信息记录到本机的known_hosts文件文件中,下次再登录时就不用再输入yes。
之所有有这样的提示,是因为远程主机的公钥信息和known_hosts文件中记录的不一样了。所以解决方法是,将本机known_hosts文件中该远程主机对应的公钥信息删除即可,开头转载的文章中有描述如何删除。
边栏推荐
- [LTTng学习之旅]------Trace控制--初阶
- Juc-7.1 thread collaboration semaphore
- [GXYCTF2019]BabyUpload1
- [LTTng学习之旅]------环境搭建
- Solve the problems that tracepass website cannot be opened and stackoverflow is not fully displayed
- 4. Text editor
- Human stars website collection plan -- Michael kerrisk
- Buuctf breakthrough diary -- [geek challenge 2019] hardsql1
- [LTTng学习之旅]------Components of LTTng 解构
- YOLO9000: Better, Faster, Stronger
猜你喜欢
Chapter 6: EASYCODE code generator
BUUCTF闯关日记04--[强网杯 2019]随便注1
BUUCTF闖關日記--[網鼎杯 2020 青龍組]AreUSerialz
Wechat applet comprehensive case practice 1
Leetcode notes (I) backtracking
1.虚拟化和容器技术
BUUCTF闯关日记04--[ACTF2020 新生赛]Include1
毕设路线—pytorch环境下的深度学习的高光谱图像分类问题
How to do research and development lean demand management well
[LTTng学习之旅]------Trace控制--进阶
随机推荐
[LTTng实操]------设计一套东西监控某周期运行用户程序的执行时间和周期--需求分析和方案设计
Learning notes of wechat applet introduction tutorial - operation feedback of UI chapter
[LTTng学习之旅]------Trace View初探
2020中南大学信息与通信夏令营面试
近期的研究方向
Bash variables - numeric operations and operators
1.1.2计网——标准化工作机器相关组织,性能指标
Wechat applet comprehensive case practice 2
3.远程连接和SSH
[lttng learning journey] - lttng features
解决TraceCompass网站打不开和Stackoverflow显示不全的问题
[LTTng学习之旅]------开始之前
Wechat applet comprehensive case practice 1
5.网络和安全
Chapter 2: Minio stand-alone version, using the client to back up files
RPM package management - Yum online management - IP address configuration and network Yum source
水库防汛泄洪抢险应急广播系统建设4G无线广播模式分析
MySQL imports 300million data
JUC-8.0-Future和Callable
Recent research directions