In the network, the following error occurs when you transfer a MySQL source installation package from one server to another server:[Root @localhost ~]# SCP mysql-5.1.55.tar.gz [email protected]:. [email protected] ' s Password:bash:scp:command not found lost connection
The command for the SCP was not found, but the find found command is present [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 reason to add to the environment variable? EVN view, the environment variable has been added Path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin and with the full path, The same error is reported when executing [[email protected] ~]#/USR/BIN/SCP mysql-5.1.55.tar.gz [email protected]:. [email protected] ' s Password:bash:scp:command not found lost connection
View the packages on which the SCP depends [[email protected] ~]# RPM-QF/USR/BIN/SCP openssh-clients-5.3p1-81.el6.i686
Suspect there will be no other dependencies on the package not installed, reinstalled again [[email protected] ~]# Yum install openssh-clients* Loaded plugins:fastestmirror, security Loa Ding mirror speeds from cached Hostfile * base:centos.ustc.edu.cn * epel:mirrors.ustc.edu.cn * Extras:centos.ustc.ed u.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 hint is already installed and is already the latest version
The same error occurs when testing again. Nani, if the command does not exist or cannot be found, it should be problematic before the SCP is knocked out, rather than after the successful completion of the command. If there is no problem locally, is there a command on the other end of the server that does not have the SCP installed? [[email protected] ~]# Whereis SCP SCP: [[email protected] ~]# It is true, so the server side does not find the SCP command, rather than the local installation of the SCP dependency package [email Protec Ted] ~]# yum install openssh-clients* after installation, re-transfer the file [[email protected] ~]# SCP mysql-5.1.55.tar.gz [email protected]:. [email protected] ' s password:mysql-5.1.55.tar.gz 100% 23MB 4.5mb/s 00:05 [[email protected] ~]# OK, done
Bash:scp:command not found lost connection problem resolution