Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 复制本地多个文件
- $ scp foo.txt bar.txt username@remotehost:/path/directory/
- # 复制远程多个文件
- $ scp username@remotehost:/path/directory/\{foo.txt,bar.txt\} .
- # 复制文件,指定ssh key
- $ scp -i ~/.ssh2/id_rsa foo.txt bar.txt username@remotehost:/path/directory/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement