Solution: in the test, files must be transferred between two virtual machines. the scp command is first generated. The result is displayed as follows:-bash: scp: commandnotfound: the yuminstallscp command is used for installation. The result is as follows: nopackagescpavailable. later I found that scp should belong to the openssh-clients package and run:
Solution
In the test, files must be transferred between two virtual machines. the scp command is first generated, and the result is as follows:
-Bash: scp: command not found
If you 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 and run:
Yum install openssh-clients
Run scp again. run again:
Scp 1.so root@192.168.0.182:/root/
After entering the password, the system prompts again:
Bash: scp: command not found
Install openssh-clients on the target host, and try again to solve the problem.
The above describes how CentOS cannot use the scp command. the reason why it cannot be used is that the yum install scp command is used, run yum install openssh-clients and then run scp.