notes/article/os/linux/scp.md

367 B

在线上机器和本机互传文件

上传

scp localfile target_machine:target_path

example:

scp ./filename.txt server.com:~/Files/

下载

scp target_machine:target_file local_path

example:

scp server.com:~/Files/filename.txt ~/files/
scp username@server.com:~/Files/filename.txt ~/files/