The authenticity of host '' can't be established.传输文件失败

因工作需要在windows下的虚拟机Linux系统与另外一台Linux直接传输文件,但用scp传输时老是弹出如下错误,折腾了半天总算解决了

scp -r dahai  [email protected]:/home

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)?

回车后提示错误;

The authenticity of host '' can't be established.传输文件失败_第1张图片

于是上网查了下,本机的key发生了变化,每次ssh链接都有提示,输入yes也不行,通过去掉主机验证检查即可解决。

注意:192.168.xxx.xxx 为本地ip地址,例如我的是ssh  -o StrictHostKeyChecking=no 192.168.0.166,再次传输文件就正常了

The authenticity of host '' can't be established.传输文件失败_第2张图片


你可能感兴趣的:(Linux)