Uploading file to AWS from local machine


How to use scp command to upload file to aws server

  • I have .pem file in /Downloads in local machine
  • I am trying to copy file to /images folder in AWS server

    What command can i use ?



You can use plain scp:

You need to put an Elastic IP to the EC2 instance, open port 22 to your local machine IP in the EC2 instance security group, and use the right user (it can be ec2-user, admin or ubuntu (look at the AMI documentation)).

Leave a Reply