Bash:scp:command not found lost connection problem resolution

Source: Internet
Author: User
Tags scp command

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.