^_^

2010年2月10日星期三

如何借助 ssh 在两个 linux 主机间互传文件

语法:
ysweb170@ubuntu:~$ scp --help
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
发送实例:
ysweb170@ubuntu:~$ scp -P 18222 test.txt ysim182@210.**.**.182:/home/ysim182
The authenticity of host '[210.**.**.182]:18222 ([210.**.**.182]:18222)' can't be established.
RSA key fingerprint is b6:aa:97:96:d5:c8:47:2b:61:64:df:a0:78:b5:04:34.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[210.**.**.182]:18222' (RSA) to the list of known hosts.
ysim182@210.**.**.182's password:
test.txt                                                          100%   14     0.0KB/s   00:00
接受实例:
ysweb170@ubuntu:~$ scp -P 18222 ysim182@210.**.**.182:/home/ysim182/test2.txt .
ysim182@210.**.**.182's password:
test2.txt                                                         100%   14     0.0KB/s   00:00
本站文章除注明外,均为本站原创
转载请注明文章转载自: 大笨熊乐园 [ https://blog.foolbear.com/ ]
文章标题: 如何借助 ssh 在两个 linux 主机间互传文件
文章地址: https://blog.foolbear.com/2010/02/ssh-linux.html

没有评论 :

发表评论

Related Posts with Thumbnails