How to download a file from EC2 instance to local computer

0 votes

I  have an instance of EC2. It has few files. And I tried to download those files from ec2 instance to my local Ubuntu 13.10.

For that i have used this command

scp -i /home/ritesh/.ssh/id_rsa2 apps@XXX.20.24.XXX:/home/apps/dev/comp-eng/arena-client/build/arena-client-7.1.0.zip

and the output i am getting is

usage: scp [-12346BCpqrv] [-c cipher] [-F ssh_config] [-i identity_file] [-l limit] [-o ssh_option] [-P port] [-S program] [[user@]host1:]file1 ... [[user@]host2:]file2

Am i using the correct forma?

Oct 10, 2018 in AWS by datageek
• 2,540 points
8,646 views

1 answer to this question.

0 votes

You need to specify your download location. If its the current directory, you can just add a ..

scp -i /home/ritesh/.ssh/id_rsa2 apps@XXX.20.24.XXX:/home/apps/dev/comp-eng/arena-client/build/arena-client-7.1.0.zip .

answered Oct 10, 2018 by Archana
• 4,170 points

Related Questions In AWS

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Copy file from EC2 instance to my local machine.

You can use a tool called FileZilla.  You ...READ MORE

answered Dec 14, 2018 in AWS by Shuvodip
4,299 views
0 votes
1 answer

Unable to connect to chromedriver 127.0.0.1:9515 on Amazon Linux AMI server

The issue seems to be only with ...READ MORE

answered Mar 26, 2018 in Selenium by nsv999
• 5,500 points
2,471 views
+3 votes
1 answer

aws cloudformation for atomic stack-update

When you perform a stack update, only ...READ MORE

answered Mar 27, 2018 in AWS by DareDev
• 6,890 points
1,096 views
+5 votes
2 answers

EC2 instance status check failed

Creating a snapshot from an EBS volume ...READ MORE

answered Mar 27, 2018 in AWS by DragonLord999
• 8,450 points
3,020 views
+1 vote
3 answers

How can I connect an app with an aws ec2 instance?

This is how you deploy a web ...READ MORE

answered Oct 18, 2018 in DevOps & Agile by Hannah
• 18,520 points
2,321 views
0 votes
1 answer

How to set up a SPF(Sender Policy Framework) for AWS EC2 instance?

Setting up a SPF record is pretty ...READ MORE

answered Aug 16, 2018 in AWS by Archana
• 4,170 points
1,648 views
0 votes
1 answer

How to copy a folder from S3 to Elastic Beanstalk instance on its creation?

I had encountered similar problem. But i ...READ MORE

answered Aug 24, 2018 in AWS by Archana
• 4,170 points
4,578 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP