Linux的遠(yuǎn)程復(fù)制命令scp
Linux的遠(yuǎn)程復(fù)制命令scp
在cygwin窗口中命令如下:
test@test ~
$ cd /cygdrive/f/20110929
test@test /cygdrive/f/20110929
$ ls
將本地20110929中的所有以tar.gz的壓縮包上傳至
test@testredhat中的tmp目錄下(開啟的端口假設(shè)是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的遠(yuǎn)程復(fù)制命令scp”還想看: