Linux的远程复制命令scp
Linux的远程复制命令scp
在cygwin窗口中命令如下:
test@test ~
$ cd /cygdrive/f/20110929
test@test /cygdrive/f/20110929
$ ls
将本地20110929中的所有以tar.gz的压缩包上传至
test@testredhat中的tmp目录下(开启的端口假设是9022):
test@test /cygdrive/f/20110929
$ scp -P 9022 *.gz test@testredhat:/tmp/
The authenticity of host '[testredhat]:9022 ([10.59.4.201]:9022)' can'
t be established.
RSA key fingerprint is c4:a9:d3:f6:d5:eb:a9:d9:56:59:fc:34:7b:cf:03:51.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[testredhat]:9022' (RSA) to the list of kn
own hosts.
test@testredhat's password:
输入密码,开始上传。。。
a.tar.gz 100% 31MB 3.9MB/s 00:08
b.tar.gz 100% 1484KB 1.5MB/s 00:00
c.tar.gz 100% 86MB 3.2MB/s 00:27
看了“Linux的远程复制命令scp”还想看: