Connect to EC2 Instance Prerequisite Download .pem file Login Give permission for .pem file chmod 600 Login to EC2 ssh -i {.pem} ubuntu@{ip-dns} Switch to root without password sudo su - Copy files from local system to ec2 scp -i {.pem} /user/thirumal/file_to_copy.pdf ubuntu@{ip}:/home/ubuntu