Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
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.3k points)

You can do this using SCP:

scp -i demo.pem [email protected]:/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

Browse Categories