Advertisement
Guest User

Untitled

a guest
May 24th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.28 KB | None | 0 0
  1. # 复制本地多个文件
  2. $ scp foo.txt bar.txt username@remotehost:/path/directory/
  3.  
  4. # 复制远程多个文件
  5. $ scp username@remotehost:/path/directory/\{foo.txt,bar.txt\} .
  6.  
  7. # 复制文件,指定ssh key
  8. $ scp -i ~/.ssh2/id_rsa foo.txt bar.txt username@remotehost:/path/directory/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement