linux A:10.110.23.84
linux B:10.110.23.85
今天用scp从A向B远程传输资料:报错如下:
[root@localhost tmp]# scp student.txt root@10.110.23.85:/tmp
root@10.110.23.85's password:
bash: scp: command not found
lost connection
原因:scp远程传输,必须两台计算机同时安装了scp的软件包openssh-clients
解决办法:安装openssh-clients
yum -y install openssh-clients
[root@localhost tmp]# scp student.txt root@10.110.23.85:/tmp
root@10.110.23.85's password:
student.txt 100% 98 0.1KB/s 00:00