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
本文介绍了在Linux系统中使用SCP命令进行文件传输时遇到的错误及其解决方法。当从一台服务器向另一台服务器传输文件时,如果出现命令未找到的错误,通常是因为目标服务器上缺少openssh-clients软件包。文中提供了具体的安装命令来解决问题。
1197

被折叠的 条评论
为什么被折叠?



