linux電腦間的文件傳輸

通常在兩臺電腦間傳輸文件有FTP, SAMBA,MSTSC以及一些第三方的如飛鴿,飛秋等等,但這些都須要安裝客戶端,或者指定目錄,用起來就沒有那麼方便了 python

若是在windows與linux之間,則SAMBA最好用 linux

若是在linux與linux之間,則SCP最好用,scp基於ssh windows

[root@hding ntp]# scp crypto/pw root@10.8.116.111:/etc/ntp                     #把10.8.116.6電腦下的pw文件拷給10.8.116.111電腦上
The authenticity of host '10.8.116.111 (10.8.116.111)' can't be established.
RSA key fingerprint is 63:57:2f:55:ab:b6:ab:cf:10:7f:d9:f9:6d:5b:ae:6a.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '10.8.116.111' (RSA) to the list of known hosts.
root@10.8.116.111's password: 
pw                                       100%  620     0.6KB/s   00:00
反方向scp

[root@hding ntp]# scp root@10.8.116.111:/root/scp.txt .                       #把10.8.116.111下面的scp.txt文件拷貝到當前目錄下
root@10.8.116.111's password: 
scp.txt                                  100%    4     0.0KB/s   00:00    
[root@hding ntp]# ls
crypto                                   ntpservers
keys                                     pw
ntpkey_cert_hding.com                    scp.txt
ntpkey_host_hding.com                    step-tickers
ntpkey_RSA-MD5cert_hding.com.3187273346
相關文章
相關標籤/搜索