Offending RSA key in ~/.ssh/known_hosts

Add correct host key in /Users/apple/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/apple/.ssh/known_hosts:6

错误#

服务器重装后出现如下错误:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 RSA key sent by the remote host is
SHA256:BK5+0u694qqyp81EuqPvY4+EQr2Q9StCeF2haGakqpA.
Please contact your system administrator.
Add correct host key in /Users/apple/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/apple/.ssh/known_hosts:6
RSA host key for [144.34.220.135]:27208 has changed and you have requested strict checking.
Host key verification failed.

解决#

vim ~/.ssh/known_hosts

删除[144.34.220.135]:27208这一行
 ( ^_^)/  ~/code/docker/docker-compose  ssh root@144.34.220.135 -p 27208
The authenticity of host '[144.34.220.135]:27208 ([144.34.220.135]:27208)' can't be established.
ECDSA key fingerprint is SHA256:4/HW3U9xWBKwe9FYwQDo7WrjBLm8oLRYREONGs8i4FI.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[144.34.220.135]:27208' (ECDSA) to the list of known hosts.
root@144.34.220.135's password:
posted @   李帆1998  阅读(638)  评论(0编辑  收藏  举报
编辑推荐:
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· Manus的开源复刻OpenManus初探
· AI 智能体引爆开源社区「GitHub 热点速览」
· 三行代码完成国际化适配,妙~啊~
· .NET Core 中如何实现缓存的预热?
点击右上角即可分享
微信分享提示
主题色彩