Search code examples
ubuntusshamazon-s3rsync

downloading files from my server to my local machine


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 rsync


Solution

  • 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 [email protected]:/file.ext /localpath/

    rsync -e "ssh -i /path/to/key.pem" [email protected]:/file.ext /localpath/

    Good luck!

    Dotan