ssh登入报错Warning: Remote Host Identification Has Changed的2种解决方法
(项目中需要通过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