将本机的文件copy到远程时,

scp -r /home/Projects/test.rpm root@172.1.1.1:/root;

我们得到了一个错误:lost connection

lost connection

原因是在远程机器172.1.1.1上,没有安装ssh服务,或者安装了也不能用,centos处理方法:

yum remove openssh-client* //卸载ssh
yum install openssh-client* //从新安装ssh

 

相关文章:

  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-18
  • 2021-08-07
猜你喜欢
  • 2021-10-02
  • 2022-01-20
  • 2021-07-24
  • 2021-10-02
  • 2021-07-21
  • 2021-11-19
  • 2021-09-25
相关资源
相似解决方案