Using the SCP command, the results prompt:
-bash:scp:command not found
Take it for granted with the Yum Install SCP command, the result is:
no package SCP available.
fix:
Packages provided by the above must not be called SCP
in general, the server has an SCP, you can find a previous SCP machine to see which package this command is provided with
[[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 is supposed to belong to Openssh-clients. This package, run:
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
This article is from the "ZPP" blog, make sure to keep this source http://1439337369.blog.51cto.com/10270624/1717707
CentOS Install the SCP command package openssh-clients