云服务器重装系统导致的Chrome OS ssh连接失败

笔者用的是Pixelbook Go

连接自己服务器用的是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 RSA key sent by the remote host is
6e:45:f9:a8:af:38:3d:a1:a5:c7:76:1d:02:f8:77:00.
Please contact your system administrator.
Add correct host key in /home/hostname /.ssh/known_hosts to get rid of this message.
Offending RSA key in /var/lib/sss/pubconf/known_hosts:4
RSA host key for pong has changed and you have requested strict checking.
Host key verification failed.

顾名思义,一般通过命令 ssh-keygen -R ip地址 刷新known_hosts就能解决问题。
但问题来了,如何访问命令行呢
要知道,在终端的penguin不过是系统开的一个容器,并不是操作系统本身

然后我在网上找了很多资料,都没解决
最后,我发现这个软件它自己就有设置按钮,然后我把那行带有服务器ip的信息删除了,就解决了


image.png

点击>>终端设置>>SSH>>~/.ssh/known_hosts
然后删掉就好了

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。