PEM was working for SSH , but not working now

0

C:\Windows\System32>ssh -i "C:\AWS\tyrewala.pem" ubuntu@3.110.148.25 ubuntu@3.110.148.25: Permission denied (publickey).

Same file was working. i can see the key pair in AWS also .

Ashwini
已提問 2 個月前檢視次數 84 次
1 個回答
0

Hello.

Have you tried the troubleshooting described in the documentation below?
https://repost.aws/knowledge-center/ec2-linux-fix-permission-denied-errors

Try troubleshooting SSH after connecting to EC2 using a serial console or Session Manager in Systems Manager.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/connect-to-serial-console.html
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager.html

profile picture
專家
已回答 2 個月前
profile picture
專家
已審閱 2 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南