将本机的文件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
将本机的文件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