scp 指令进行上传下载
1、从本地上传
scp /usr/local/xx.tar.gz root@10.12.3.101:/opt/gd/server/nginx/html
2、从服务器下载到当前目录
scp root@10.12.3.101:/opt/gd/server/nginx/html/gd20220106.zip /usr/local/
3、指定端口
scp -P 3366 root@10.12.3.101:/opt/gd/server/nginx/html/gd20220106.zip /usr/local/
4、上传目录
scp -r /usr/local root@10.12.3.101:/opt/gd/server/nginx/html