8.11. scp指令快速指导
从远程服务器向本地复制文件:
scp username@from_host:file.txt /local/directory/
从本地向远程服务器复制文件:
scp file.txt username@to_host:/remote/directory/
从远程服务器向本地复制目录:
scp -r username@from_host:/remote/directory/ /local/directory/
从一台远程服务器向另一台远程服务器复制文件:
scp username@from_host:/remote/directory/file.txt username@to_host:/remote/directory/