语法:
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
没有评论 :
发表评论