How to copy files from local machine to AWS Ec2:

Make sure you have
sudo chmod 777 ngdev -> access for the naveen folder in AWS

scp -i aws.pem /home/mobaxterm/Desktop/Screenshot_1602162067.png ec2-user@ec2-1-2-3-4.us-east-2.compute.amazonaws.com:/home/ec2-user/ngdev/

Make sure you have aws.pem file from the place where you are running this command from your local machine.

Leave a Reply