Intellipaat Back

Explore Courses Blog Tutorials Interview Questions
+1 vote
2 views
in AWS by (29.3k points)

Please find the screenshot where I am unable to to connect aws server to git bash.

1 Answer

0 votes
by (50.2k points)
On which machine thus the instance launched? (ubuntu or Amazon Linux)?
1. If you are using ubuntu machine instance then the command is:
ssh -i <keypair.pem> ubuntu@<public Ip address of instance>
2. If in case you are using on Amazon Linux then the command is:
ssh -i <keypair.pem> ec2-user@<public ip address of instance>
3. If you are launching the instance for the first time it will ask us whether to add this key pair to the system or not? please enter yes and then continue it.
4. If still doesn't work try copying the key pair folder to the outer directory and try ssh command from there.
Note: Remove the quotations while giving the .pem file name.

Related questions

0 votes
1 answer
Want to get 50% Hike on your Salary?

Learn how we helped 50,000+ professionals like you !

0 votes
1 answer
asked Dec 19, 2020 in AWS by devin (5.6k points)
0 votes
1 answer

31k questions

32.8k answers

501 comments

693 users

Browse Categories

...