欢迎光临散文网 会员登陆 & 注册

ssh登入报错Warning: Remote Host Identification Has Changed的2种解决方法

2022-03-25 13:06 作者:LogByMax  | 我要投稿

(项目中需要通过ssh登入环境,在执行ssh root@sample.xxx.xxx.xxx时遇到的问题,记录一下)

操作环境:windows10

问题截图:

解决方法:

方法一:

step1:在powershell中输入cd ~/.ssh/, 进入.ssh文件夹

step2:执行 start ./know*, 打开存储着host信息的文件,找到对应ip的sample.xxx.xxx.xxx的那一行,删掉这一行,然后保存文件。

step3.然后重新登入ssh root@sample.xxx.xxx.xxx即可

方法二:也可以把~/.ssh/know*整个文件删除

=END=

=references=

[1]How To Fix the "Warning: Remote Host Identification Has Changed" Error (kinsta.com)

[2]verification - ssh remote host identification has changed - Stack Overflow

ssh登入报错Warning: Remote Host Identification Has Changed的2种解决方法的评论 (共 条)

分享到微博请遵守国家法律