aws scp 传输(参考地址:https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html)
新建私钥文件(就是令一台EC2登录密钥)
chmod 400 /path/aws.pem
拷文件:
scp -i ./aws.pem ec2-user@ec2-89-299-45-222.us-east-2.compute.amazonaws.com:/www ./
拷目录:
scp -r -i ./aws.pem ec2-user@ec2-8-286-65-222.us-east-2.compute.amazonaws.com:/www ./
通过局域网IP:
scp -r -i ./aws.pem ec2-user@ip-172-0-32-225.us-east-2.compute.internal:/www ./