1. 程式人生 > >The authenticity of host '' can't be established.傳輸檔案失敗

The authenticity of host '' can't be established.傳輸檔案失敗

因工作需要在windows下的虛擬機器Linux系統與另外一臺Linux直接傳輸檔案,但用scp傳輸時老是彈出如下錯誤,折騰了半天總算解決了

The authenticity of host '192.168.0.12 (192.168.0.12)' can't be established.
RSA key fingerprint is ....

Are you sure you want to continue connecting (yes/no)?

回車後提示錯誤;


於是上網查了下,本機的key發生了變化,每次ssh連結都有提示,輸入yes也不行,通過去掉主機驗證檢查即可解決。

注意:

192.168.xxx.xxx 為本地ip地址,例如我的是ssh  -o StrictHostKeyChecking=no 192.168.0.166,再次傳輸檔案就正常了