How do i connect to an linux ec2 instance using ssh?
-
Get the domain name for the instance.
$ aws ec2 describe-instances --instance-ids i-0trddfdfd045450df --query "Reservations[*].Instances[*].PublicDnsName"
Using your stored private pem key generated via the console or command line.
$ ssh -i ~/.ssh/TestInstance.pem [email protected]
© Lightnetics 2024