Freekode
FreeKode -

justacode




Download File From Remote EC2 Server SCP

$ sudo scp -i ./pemfile.pem [email protected]:~/file.txt ./file.txt

# ./pemfile.pem is the pem key to accessing your server. Make sure no one other than you and your team know about it.
# user is the user which has access to the file you want to download onto your local machine. Example: ubuntu.

# ec2-x-x-xx-xx.location.compute.amazonaws.com is the EC2 link for the file you want to download.
# ~/file.txt is the path for the file you want to download in the remote EC2 server.

# ./file.txt is the name and the path where the file should download on your local computer.