0 votes
1 view
in AWS by (19.2k 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.6k points)

You can do this using SCP:

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

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...