What if CentOS can't use the scp command?

  

The scp command is a file transfer command in Linux. Its usage details the system home Linux scp command usage summary, but in the CentOS system operation, sometimes it will be unusable. In this case, How to solve it? The following small series will introduce you to the solution that CentOS can't use the scp command.

Solution

need to transfer files between two virtual machines in the test, the first thought is scp command, the results suggest that:

-bash: Scp: command not found

Of course, use the yum install scp command to install, the result prompts:

No package scp available.

Later found that scp should belong to openssh-clients Package, run:

yum install openssh-clients

Run spp again, run again:

scp 1.so [email protected]:/root/

After entering the password, please prompt again:

bash: scp: command not found

Also install openssh-clients on the target host, try again, and solve the problem.

The above is the introduction of the solution that CentOS can't use the scp command. The reason why you can't use it is to use the yum install scp command. You should run sum install openssh-clients and then run scp.

Copyright © Windows knowledge All Rights Reserved