Step 1 – Ensure your EC2 instance is running
Step 2 – Get EC2 instance name or public ip .
Step 3 – Locate your Key Pair ( you must need keypair to connect to AWS services programmatically )
Step 4 – grant sufficient access
chmod 400 myKeypair.pem
Step 4 – ssh to your ec2 instance
example –
ssh ec2-user@54.161.76.251 -i myKeypair.pem
or
ssh ec2-user@ec2-54-161-76-251.compute-1.amazonaws.com -i myKeypair.pem
[…] https://learnsqlteam.com/2018/11/30/how-to-connect-aws-ec2-instance-through-terminal/ […]
LikeLike