当前位置: 首页 > news >正文

ssh连接出现WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

问题描述

在使用ssh连接远程服务器的时候,会出现以下提示信息,然后链接断掉

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED25519 key sent by the remote host is
SHA256:+DiY3wvvVxxxhbpZisF/zLxxxzPMSvHdkxxx4UvCOqU.
Please contact your system administrator.
Add correct host key in /Users/xxx/.ssh/known_hosts to get rid of this message.
Offending ED25519 key in /Users/xxx/.ssh/known_hosts:1
Host key for github.com has changed and you have requested strict checking.
Host key verification failed.
fatal: Could not read from remote repository.Please make sure you have the correct access rights
and the repository exists.

解决方法

切换到home目录下的.ssh,找到known_hosts文件,可能还有一个known_hosts.old的文件。
直接将这两个文件删除,或者是更换名字,比如known_hosts.bak,或者是移动到其他目录里备份,如果你怕出问题,建议备份,然后再重新ssh进行连接即可

相关文章:

  • C预处理详解1
  • 多设备Obsidian笔记同步:WebDAV与内网穿透技术高效实现教程
  • HUELOJ: 107 打印数字图形(函数专题)
  • Python 的内置函数 help
  • 用 Python 绘制动态方块热力图:从数据到可视化的完美蜕变
  • 时序数据库IoTDB的架构、安装启动方法与数据模式总结
  • C# Quartz.net 定时任务
  • 中国风办公简约通用总结答辩PPT模版分享
  • 成都信工大ACM同步赛(第一次用JS打)
  • PyQt5—交互状态
  • 基于python代码的通过爬虫方式实现TK下载视频(2025年6月)
  • 从C++编程入手设计模式——命令模式
  • LeapMotion-PhysicalHandsManager 类详解
  • 关于控制结构知识点的详细讲解(从属GESP一级内容)
  • 在 Windows 和 Linux 下使用 C/C++ 连接 MySQL 的详细指南
  • 通义大模型与现有企业系统集成实战《CRM案例分析与安全最佳实践》
  • 《jQuery CSS 类的使用与优化》
  • CSS平滑滚动效果实现方法
  • uni-app项目实战笔记23--解决首次加载额外图片带来的网络消耗问题
  • Spark教程6:Spark 底层执行原理详解
  • h5响应式网站/互联网域名注册查询
  • 前端网站模板/seo必备软件
  • wordpress图片无法居中/标题seo是什么意思
  • wordpress插件安装本地安装教程/众志seo
  • 怎么做网站代销/制作公司网站
  • 做橙光游戏的网站/电商热门关键词