因工作需要在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 '<host>' can't be established.传输文件失败

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

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

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


相关文章:

  • 2022-12-23
  • 2021-09-05
  • 2021-12-26
  • 2022-12-23
  • 2021-10-14
  • 2021-06-10
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2021-11-02
  • 2021-09-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案