相关疑难解决方法(0)

暂时忽略我的`~/.ssh/known_hosts` 文件?

有没有办法暂时忽略我的~/.ssh/known_hosts文件?

mbp:~ alexus$ ssh 10.52.11.171
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx.
Please contact your system administrator.
Add correct host key in /Users/alexus/.ssh/known_hosts to get rid of this message.
Offending RSA …
Run Code Online (Sandbox Code Playgroud)

linux ssh

76
推荐指数
3
解决办法
9万
查看次数

如何管理我的 .ssh/known_hosts 文件

我在 Virtual Box 中运行带有一堆虚拟服务器的 Ubuntu 桌面来测试内容等等。过去我也一直连接到其他类型的远程 VPS Linux 机器。目前我的.ssh/known_hosts文件中有一大堆密钥,其中大部分不再使用。

我想清理我的.ssh/known_hosts文件,但我怎么知道哪个密钥属于哪个主机?即我怎么知道哪些键我可以安全地移除,哪些我应该不理会?

ssh

59
推荐指数
3
解决办法
15万
查看次数

标签 统计

ssh ×2

linux ×1