bash: scp: command not found的原因及解决办法

来源:互联网 发布:网络课高级英语答案 编辑:程序博客网 时间:2024/04/29 18:21

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   

0 0
原创粉丝点击