Today, the newly installed machine uses the SCP command, the result hints:
-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:
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
This article is from the "Boyhack" blog, make sure to keep this source http://461205160.blog.51cto.com/274918/1739349
CentOS Install the SCP command package openssh-clients