i am using free tier as a new user. i am connecting my EC-2 instance from my laptop through putty.

0

i am unable to to connect my ec-2 instance. I am getting below error attached screen shot. I also tried with default user ec2-user but same error.Enter image description here

질문됨 2년 전350회 조회
3개 답변
0
수락된 답변

Hello, have you had a little at this article https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html ? it might help you out. check the ppk isn't just a rename but a conversion as well.

DanielM
답변함 2년 전
0

Hi,

Your problem can be related to incorrect login which varies depending on AMIs. Use following logins on following AMIs:

  • ubuntu or root on ubuntu AMIs
  • ec2-user on Amazon Linux AMI
  • centos on Centos AMI
  • debian or root on Debian AMIs
  • ec2-user or fedora on Fedora
  • ec2-user or root on: RHEL AMI, SUSE AMI, other ones.

If you are using OS:

  • Windows - get PEM key from AWS website and generate PPK file using PuttyGen. Then use Putty to use the PPK (select it using left-column: Connection->SSH->Auth: Private key for authorization)

  • Linux - run: ssh -i your-ssh-key.pem login@IP-or-DNS

refer- https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html

If the Answer is helpful, please click Accept Answer and up-vote, so that it can help others in the community looking for help on similar topics.

profile picture
답변함 2년 전
0

I was doing one terrible mistake. I deleted the original key pair and created the new one that was not accepted by the system. i created new instance and by its original key pair ssh that instance by the steps provided by you its connected. Thank you all for your support

답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠