ssh登入報(bào)錯(cuò)Warning: Remote Host Identification Has Changed的2種解決方法
(項(xiàng)目中需要通過ssh登入環(huán)境,在執(zhí)行ssh root@sample.xxx.xxx.xxx時(shí)遇到的問題,記錄一下)
操作環(huán)境:windows10
問題截圖:

解決方法:
方法一:
step1:在powershell中輸入cd ~/.ssh/, 進(jìn)入.ssh文件夾
step2:執(zhí)行 start ./know*, 打開存儲(chǔ)著host信息的文件,找到對應(yīng)ip的sample.xxx.xxx.xxx的那一行,刪掉這一行,然后保存文件。

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

方法二:也可以把~/.ssh/know*整個(gè)文件刪除
=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
標(biāo)簽: