How to SSH Using Linux and MAC - Eproject000111/AWS GitHub Wiki

Previously Downloable .pem file, is space available in it's name remove that space first and place to that file a specific folder. In my case i have made a folder aws-course and place the .pem file in to that.

And then open command line on a where your .pem file is available. 43.204.108.253 is IP address of already created ec2 instance

  • ssh [email protected] if this give us error of to many authentication failure, then use this one
  • ssh -i ec2Example.pem [email protected] if this give us error unprotected Private key file, then use this one
  • chmod 0400 ec2tutorial.pem, and then use previous one ssh -i ec2Example.pem [email protected] commond
  • aws iam list-users