Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 386 Bytes

Connect_to_EC2.md

File metadata and controls

31 lines (20 loc) · 386 Bytes

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