实例1:从本地服务器复制到远程服务器:
(1) 复制文件:
命令格式:
scp local_file remote_username@remote_ip:remote_folder
样例
scp test.sql [email protected]:/home/mysql
实例2:从远处复制文件到本地目录
命令格式:
scp remote_username@remote_ip:remote_folder local_folder
样例
scp [email protected]:/opt/soft/nginx-0.5.38.tar.gz /opt/soft/
标签:opt,remote,命令,复制,双向,folder,scp From: https://www.cnblogs.com/dll102/p/16714885.html