bash: scp: command not found lost connection问题解决
Intranet,Pass from one servermysqlofSourceWhen you install the package to another server,The following error occurred:
[root@localhost ~]# scp mysql-5.1.55.tar.gz root@192.168.3.22:.
[email protected]’s password:
bash: scp: command not found
lost connection
Tip scp command not found,But the discovery found that the command exists
[root@localhost ~]# whereis scp
scp: /usr/bin/scp /usr/share/man/man1/scp.1.gz
[root@localhost ~]# find / -name scp
/usr/bin/scp
Because there is no environment variable added to the reasons?
EVN 查看,We have joined the environment variables
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
And to bring the full path,When executed or reported the same error
[root@localhost ~]# /usr/bin/scp mysql-5.1.55.tar.gz [email protected]:.
[email protected]’s password:
bash: scp: command not found
lost connection
See scp relies package
[root@localhost ~]# rpm -qf /usr/bin/scp
openssh-clients-5.3p1-81.el6.i686
Suspect there will be other dependencies is not installed on,Reinstall it again
[root@localhost ~]# yum install openssh-clients*
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base: centos.ustc.edu.cn
* warm: mirrors.ustc.edu.cn
* extras: centos.ustc.edu.cn
* updates: centos.ustc.edu.cn
Setting up Install Process
package openssh-clients-5.3p1-81.el6.i686 already installed and latest version
Nothing to do
Tip has been installed,And already the newest version
When retesting,Still the same error。Nani,If the command does not exist or can not be found,Before scp command should knock them out is a problem ah,And should not be re-emergence of this problem after a successful command clincher。If you are not a local problem,That is not installed scp command server on the other end?
[root@com ~]# whereis scp
scp:
[root@com ~]#
Really so,So is the server side does not find scp command,Rather than the local
Dependencies installed scp
[root@com ~]# yum install openssh-clients*
After installing,Retransmission file
[root@localhost ~]# scp mysql-5.1.55.tar.gz [email protected]:.
[email protected]’s password:
mysql-5.1.55.tar.gz
This article