Problem:
Today with the SCP command, the result is:
-bash:scp:command not found
Take it for granted with the Yum Install SCP command, the result is:
No Package SCP available.
Solve:
Packages provided by the above must not be called SCP
In general, the server has SCP, you can find a previous SCP machine to see which package this command is provided by
[email protected] ~]# which SCP
/usr/bin/scp
[Email protected] ~]# RPM-QF/USR/BIN/SCP
Openssh-clients-5.3p1-94.el6.x86_64
So the SCP this thing should belong to openssh-clients this package, run:
1
Yum Install Openssh-clients-y
Run the SCP again and run it again:
If you enter a password and then prompt again:
Bash:scp:command not found
The target host will be installed, if it's not installed.
Also install openssh-clients on the target host, problem solving
CentOS Install the SCP command package openssh-clients