Connect on your EC2 instances with Local host by ssh

Connect on your EC2 instances with Local host by ssh

aws ubuntu to Local ubuntu machine by ssh

Prerequisites for installing EC2 Instance Connect: Ubuntu to ubuntu

  • AWS account

  • Run Ec2 instance

  • AWS ubuntu server with privet key file (key.pem) & path of this file

  •     chmod 400 "testdemo1.pem"
    

    chmod 400 means permit to :{testdemo1.pem } is security privet key

  • The owner can read the file.

  • Group members have no permissions.

  • Others have no permissions.

      ssh -i "testdemo1.pem" ubuntu@ec2-52-1-30-149. compute-1.amazonaws.com