-bash: scp: command not found解决办法
在测试中需要在两台虚拟机之间传递文件,首先想到的是scp命令,结果提示:
-bash: scp: command not found
用yum install scp命令安装,结果提示:
No package scp available.
后来发现scp应该属于openssh-clients这个包,运行:
yum install openssh-clients -y
[root@localhost tmp]# which scp
/usr/bin/scp