Install scp command in CentOS

Source: Internet
Author: User
Tags scp command
SCP uses the SSH protocol for file transfer in Linux, but I do not have this command for the minimal installation of CentOS6.3. [Root @ kashu/] # scp-bash: scp: commandnotfound after installing the openssh-clients package, you can use the SCP command. [Root @ kashu/] # yuminstallopenssh-clientsLoadedplugins: fastestmi

SCP uses the SSH protocol for file transfer in Linux, but I do not have this command for the minimal installation of CentOS 6.3.

[Root @ kashu/] # scp

-Bash: scp: command not found


After installing the openssh-clients package, you can use the SCP command.

[Root @ kashu/] # yum install openssh-clients

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

Setting up Install Process

Resolving Dependencies

--> Running transaction check

---> Package openssh-clients.i686 0: 5. 3p1-81.el6 will be installed

--> Processing Dependency: libedit. so.0 for package: openssh-clients-5.3p1-81.el6.i686

--> Running transaction check

---> Package libedit. i686 0: 2. 11-4.20080712cvs.1.el6 will be installed

--> Finished Dependency Resolution


Dependencies Resolved


========================================================== ========================================================== ======================================

Package Arch Version Repository Size

========================================================== ========================================================== ======================================

Installing:

Openssh-clients i686 5.3p1-81. el6 163 364 k

Installing for dependencies:

Libedit i686 2.11-4.20080712cvs.1.el6 163 73 k


Transaction Summary

========================================================== ========================================================== ======================================

Install 2 Package (s)


Total download size: 437 k

Installed size: 1.2 M

Is this OK [y/N]: y

Downloading Packages:

(1/2): libedit-2.11-4.20080712cvs.1.el6.i686.rpm | 73 kB

(2/2): openssh-clients-5.3p1-81.el6.i686.rpm | 364 kB

Bytes -----------------------------------------------------------------------------------------------------------

Total 175 kB/s | 437 kB

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

Installing: libedit-2.11-4.20080712cvs.1.el6.i686 1/2

Installing: openssh-clients-5.3p1-81.el6.i686 2/2

Verifying: libedit-2.11-4.20080712cvs.1.el6.i686 1/2

Verifying: openssh-clients-5.3p1-81.el6.i686 2/2


Installed:

Openssh-clients.i686. 3p1-81.el6


Dependency Installed:

Libedit. i686 0: 2. 11-4.20080712cvs.1.el6


Complete!

[Root @ kashu/] # scp

Usage: scp [-1246 BCpqrv] [-c cipher] [-F ssh_config] [-I identity_file]

[-L limit] [-o ssh_option] [-P port] [-S program]

[[User @] host1:] file1... [[user @] host2:] file2


Related Article

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.