Explore Courses Blog Tutorials Interview Questions
0 votes
in AWS by (19.1k points)

What scp arguments should I use to download a file from an Amazon EC2 instance to local storage?

1 Answer

0 votes
by (44.4k points)

You can do this using SCP:

scp -i demo.pem name@ec2ip:/path/to/file


  • demo.pem is your PEM key

  • Name is your login username

  • ec2ip is the public IP of the instance

  • /path/to/file is the location where the file is stored

This command will copy the file to your local folder

Related questions

Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer

Browse Categories