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/

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,460 points

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/ .

answered Oct 10, 2018 by Archana
• 4,150 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
0 votes
3 answers
0 votes
1 answer

Unable to connect to chromedriver on Amazon Linux AMI server

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

answered Mar 26, 2018 in Selenium by nsv999
• 5,510 points
+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,850 points
+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,400 points
+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,030 points
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,150 points
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,150 points