aws scp 传输(参考地址:https://docs.aws.amazon.com/zh_cn/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html)
新建私钥文件(就是令一台EC2登录密钥)
chmod 400 /path/aws.pem
拷文件:
scp -i ./aws.pem ec[email protected]:/www ./
拷目录:
scp -r -i ./aws.pem e[email protected]:/www ./
通过局域网IP:
scp -r -i ./aws.pem [email protected]:/www ./