Question : How to connect to ec2 from terminal
Answered by : zahid-ali-58ancfkwznha
ssh -i "location/ec2-private-key-pair.pem" OS@EnterpublicDNSHERE
eg: ssh-i "my-key.pem" [email protected]
Source : | Last Update : Wed, 17 Jan 24
Question : connect ec2 using terminal
Answered by : abdulrahman-muhammad-wakili
{"tags":[{"tag":"p","content":"connect ec2 using terminal"},{"tag":"p","content":""},{"tag":"textarea","content":"ssh -i file.pem username@ip-address","code_language":"whatever"}]}
Source : | Last Update : Thu, 09 Nov 23
Question : EC2 CLI connect
Answered by : tense-tarsier-995lpqd28m0e
{"tags":[{"tag":"textarea","content":"aws ec2-instance-connect send-ssh-public-key \\\n --instance-id i-1234567890abcdef0 \\\n --instance-os-user ec2-user \\\n --availability-zone us-east-2b \\\n --ssh-public-key file:\/\/path\/my-rsa-key.pub","code_language":"whatever"}]}
Source : https://docs.aws.amazon.com/cli/latest/reference/ec2-instance-connect/send-ssh-public-key.html | Last Update : Tue, 18 Apr 23