CentOS6.3中安装SCP
SCP使用SSH协议在Linux系统中进行文件传输,但我最小安装的CentOS 6.3没有该命令。
[root@kashu /]# scp
-bash: scp: command not found
安装openssh-clients软件包后就可以使用SCP命令了。
[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 00:00
(2/2): openssh-clients-5.3p1-81.el6.i686.rpm | 364 kB 00:02
-----------------------------------------------------------------------------------------------------------
Total 175 kB/s | 437 kB 00:02
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 0:5.3p1-81.el6
Dependency Installed:
libedit.i686 0:2.11-4.20080712cvs.1.el6
Complete!
[root@kashu /]# scp
usage: scp [-1246BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file]
[-l limit] [-o ssh_option] [-P port] [-S program]
[[user@]host1:]file1 ... [[user@]host2:]file2
目录 返回
首页