Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
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

where:

  • 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

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...