One, using the SCP command to transfer files from the physical host to the CentOS 6.1 virtual machine, the following error is indicated:
Bash:scp:command not found
The SCP command is also missing from the CentOS 6.1 virtual machine view.
The virtual machine was installed by a colleague, and other commands were incomplete, probably not a complete installation, and some packages were missing.
Second, use the following methods to solve:
1. Find the package where SCP is located in a complete CentOS 5.8:
# which SCP
/usr/bin/scp
# RPM-QF/USR/BIN/SCP
Openssh-clients-4.3p2-82.el5
2, found to belong to the Openssh-clients package, insert the CentOS 6.1 system CD-ROM, mount to find openssh-clients, installation prompt:
libedit.so.0 () (64bit) is needed by openssh-clients-5.3p1-52.el6.x86_64
You need to install Libedit First, then install Openssh-clients
# RPM-IVH cdrom/packages/libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm
Warning:cdrom/packages/libedit-2.11-4.20080712cvs.1.el6.x86_64.rpm:header V3 rsa/sha256 Signature, key ID c105b9de: Nokey
Preparing ... ########################################### [100%]
1:libedit ########################################### [100%]
# RPM-IVH cdrom/packages/openssh-clients-5.3p1-52.el6.x86_64.rpm
Warning:cdrom/packages/openssh-clients-5.3p1-52.el6.x86_64.rpm:header V3 rsa/sha1 Signature, key ID C105b9de:nokey
Preparing ... ########################################### [100%]
1:openssh-clients ########################################### [100%]3, can also be installed directly by the following command:
# yum Install openssh-clients
Linux under Bash:scp:command not found problem or install SSH packet times wrong requires:libedit.so.0 () (64bit)