To solve the problem of installing scp command and error in CentOS, you need to transfer files between two virtual machines in the test. The first thought is the scp command. The result is:-bash: scp: commandnotfound is automatically installed using the yuminstallscp command. The result is: Nopackagescpavailable. later I found that scp should belong to the openssh-clients package. run: yuminstallopenss CentOS to install the scp command and solve the problem. in the test, files must be transferred between two virtual machines, the first thought is the scp command. The result is:-bash: scp: command not found. you can use the yum install scp command for installation. The result is: No package scp available. later I found that scp should belong to the openssh-clients package. run: yum install openssh-clients and then run scp. , Run again: scp 1.so root@192.168.0.182:/root/enter the password again prompt: bash: scp: command not found in the target host also install openssh-clients, try again, solve the problem.