-
- While connecting to an EC2 instance from SSH, Amazon tutorial suggest you type in the following:
ssh -i {full path of your .pem file} ec2-user@{instance IP address}
- Assuming the private key file is saved under /home directory/.ssh, this is the connection string that actually worked for me in Git Bash. Ubuntu for Windows just can’t seem to find the private key file no matter what I do. Also note: use Public DNS IPV4 for the EC2 instance, not IPV4.
ssh -i "~/.ssh/yourkey.pem" ec2-user@ec2-00-000-00-00.us-east-2.compute.amazonaws.com
- While connecting to an EC2 instance from SSH, Amazon tutorial suggest you type in the following:
- Authorize Inbound Traffic for your Linux Instance