CentOS6.3系统安装SCP命令


 原文:http://www.111cn.net/sys/CentOS/58387.htm 

CP使用SSH协议在Linux系统中进行文件传输,但我最小安装的CentOS 6.3没有该命令。

 代码如下
[root@localhost ~]# scp
-bash: scp: command not found

安装openssh-clients软件包后就可以使用SCP命令了。

 代码如下
 
[root@localhost ~]# yum install openssh-clients

安装完成之后

 代码如下
 
[root@localhost ~]# scp
[root@localhost ~]# 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

相关内容