利用公钥传输远程文件到本地
scp -P 22022 root@192.xx.xx.xx:/home/abc/file /file/path
本地到远程
scp -P 5506 /home/abc/file root@123.xx.xx.xx:/home
传目录加 -r
scp -P 5506 -r /home/abc root@123.xx.xx.xx:/home
指定公钥
scp -i /abc/aws.pem /Documents/abc.zip ec2-user@xxx.amazonaws.com:/home/ec2-user/projects