且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

无法通过SSH进入Vagrant VM(不使用vagrant ssh)

更新时间:2023-12-05 13:34:04

主机密钥验证失败

Host key verification failure

这是 ssh 的一项安全功能,它试图在中间攻击发生之前制止人员.

This is a security feature of ssh that tries to stop man in the middle attacks before they happen.

您的计算机上次将其放入该无所事事的盒子时,存储了服务器签名的副本;现在连接时,很可能是在重建之后,您连接到相同的物理地址,并且签名现在不匹配.

Your computer, last time it ssh'd into that vagrant box, stored a copy of the servers signature; when you are connecting now, most likely after a rebuild, you are connecting to the same physical address, and the signatures now mismatch.

要清除陈旧的条目,可以在客户端设备(您尝试从 SSH SSH的设备)上的纯文本文件~/.ssh/known_hosts中找到它们.

To clear out stale entries, you can find them in the plain text file ~/.ssh/known_hosts on your client device ( the device you are trying to ssh from ).