another way to do it is
scp -i "insert key file here" -r "insert ec2 instance here" "your local directory"
One mistake I made was scp -ir
. The key has to be after the -i
, and the -r
after that.
so
scp -i amazon.pem -r ec2-user@ec2-##-##-##:/source/dir /destination/dir
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…