开发者

downloading files from my server to my local machine

开发者 https://www.devze.com 2023-03-10 11:18 出处:网络
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.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消