Hello I am running ec2 ubuntu instance, now I need to download few files to my local ubuntu machine from my server. How to do it.
I went through few instructions available on internet, which are not working for me.
Kindly help me in this regard.I am pretty much aware of ssh/scp and 开发者_JS百科rsync
Jeevan,
Copying from EC2 is the same as copying from any other machine. The only difference is, that if you want to pull the information from the EC2 instance, then you will need to use the key.
Example commands for copying FROM the EC2:
scp -i /path/to/key.pem user@ec2.com:/file.ext /localpath/
rsync -e "ssh -i /path/to/key.pem" user@ec2.com:/file.ext /localpath/
Good luck!
Dotan
精彩评论