当前位置:网站首页>解决:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING
解决:WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING
2022-08-04 10:07:00 【timerring】
目录
一、问题出现
在采用ssh连接远程服务器时,报错如下:
C:\Users\24163>ssh [email protected]_IP
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:NXXXXXXXXXXXXXXXXXXXXXXXXXXXL2YY.
Please contact your system administrator.
Add correct host key in C:\\Users\\24163/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\24163/.ssh/known_hosts:4
ECDSA host key for YOUR_IP has changed and you have requested strict checking.
Host key verification failed.
二、原因分析
根据报错信息,可以分析得知,
“It is also possible that a host key has just been changed.”以及“ECDSA host key for YOUR_IP has changed and you have requested strict checking.Host key verification failed.”
显示主机密钥已更改,因此验证失败。
ssh是以公钥和私钥进行认证的,因此它会将计算机/服务器之间进行访问的公钥记录到~/.ssh/known_hosts中,当下一次访问时,ssh会核对公钥,若认证失败,则OpenSSH会发出警告!
而这一现象常常出现在服务器重装系统之后,这时连接与上一系统的连接不同,因此会认证不通过。
三、解决方案
解决这一问题的方法很简单,只需要进入用户文件夹下的.ssh文件夹中,删除红框内的文件即可。

注意:.ssh是隐藏文件夹,如果找不到该文件夹,可能电脑未勾选显示“隐藏的项目”。
如下图 查看--->显示--->隐藏的项目,即可。

边栏推荐
- 浅聊偏函数
- 低代码是开发的未来吗?浅谈低代码开发平台的发展现状及未来趋势
- JS工厂模式_工厂模式进行封装
- 多媒体和物联网技术让版本“活”起来 129张黑胶唱片“百年留声”
- Producer and Consumer Problems in Concurrent Programming
- leetcode动态规划系列(求路径篇)
- 双重for循环案例以及while循环和do while循环案例
- Cloud function to achieve automatic website check-in configuration details [Web function/Nodejs/cookie]
- VSCode学习资料
- LVS+Keepalived群集部署
猜你喜欢

超宽带UWB实时精准定位,短距离无缝交互应用,物联网厘米级精度方案

【COS 加码福利】COS 用户实践有奖征文,等你来投稿!

双指针方法

高级转录组分析和R数据可视化火热报名中(2022.10)

HCIP 交换实验

leetcode每天5题-Day06
![[Punctuality Atomic STM32 Serial] Chapter 1 Learning Method of the Book Excerpted from [Punctuality Atomic] MiniPro STM32H750 Development Guide_V1.1](/img/99/23e3dcb426769a415e33f7ff51bbb8.png)
[Punctuality Atomic STM32 Serial] Chapter 1 Learning Method of the Book Excerpted from [Punctuality Atomic] MiniPro STM32H750 Development Guide_V1.1

有了这篇 Kubernetes 的介绍,它的原理秒懂!

《迁移学习导论》第2版,升级内容抢先看!
![Could you please talk about how the website is accessed?[Interview questions in the web field]](/img/06/5ecc617edc4131c31f71d5e019a64c.png)
Could you please talk about how the website is accessed?[Interview questions in the web field]
随机推荐
Win11不识别蓝牙适配器的解决方法
无线Mesh自组网方案,CV5200无线模组应用,支持高清数据远距离传输
Qt:小的任务管理器(task)
无代码平台多行文字入门教程
JS工厂模式_工厂模式进行封装
Detailed explanation of telnet remote login aaa mode [Huawei eNSP]
Introduction to the core methods of the CompletableFuture interface
ps如何换背景颜色,自学ps软件photoshop2022,3种不同的方式笔记记录
leetcode经典例题——56.合并区间
iMeta | Baidu certification is completed, search "iMeta" directly to the publisher's homepage and submission link
参数优化。
bash shell数组详解
SVG 的 path 属性绘制图形
【COS 加码福利】COS 用户实践有奖征文,等你来投稿!
Four common methods of network attacks and their protection
《迁移学习导论》第2版,升级内容抢先看!
XCTF-reverse-signin
LeetCode中等题之旋转图像
2022-08-03 第六小组 瞒春 学习笔记
[Punctuality Atom STM32 Serial] Chapter 3 Development Environment Construction Excerpted from [Punctual Atom] MiniPro STM32H750 Development Guide_V1.1