DoubleLi

qq: 517712484 wx: ldbgliet

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
  4737 随笔 :: 2 文章 :: 542 评论 :: 1615万 阅读
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

Linux清除原有ssh密钥方法
1.问题现象

以前在mac的终端下面使用ssh user@localhost输入密码就可以连接到远程的SSH服务器,今天连接的时候老是提示如下错误:

KENFORFORLIN:~ kenforstar$ sudo ssh root@192.168.1.203

Password:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
ea:24:31:8d:03:07:36:db:2f:74:15:5d:58:67:a3:5b.

Please contact your system administrator.

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

Offending key in /var/root/.ssh/known_hosts:1

RSA host key for 192.168.1.203 has changed and you have requested strict checking.

Host key verification failed.

只要清除老的公钥信息就可以了。

2.解决方法

ssh-keygen -R 192.168.1.203(你远程服务器的IP)

posted on   DoubleLi  阅读(1041)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 阿里最新开源QwQ-32B,效果媲美deepseek-r1满血版,部署成本又又又降低了!
· 单线程的Redis速度为什么快?
· SQL Server 2025 AI相关能力初探
· AI编程工具终极对决:字节Trae VS Cursor,谁才是开发者新宠?
· 展开说说关于C#中ORM框架的用法!
历史上的今天:
2021-02-02 【内存检测系列】window下windbg内存泄漏检查
2021-02-02 使用windbg检测内存泄漏
2021-02-02 如何在Win10系统中正确配置WinDbg?WinDbg配置方法说明
2021-02-02 WinDbg配置pdb路径
2021-02-02 《WinDbg 命令三部曲:(一)WinDbg 命令手册》
2021-02-02 windbg调试命令
2021-02-02 安装与配置windbg的symbol(符号)
点击右上角即可分享
微信分享提示