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
demandé il y a 2 mois84 vues
1 réponse
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
EXPERT
répondu il y a 2 mois
profile picture
EXPERT
vérifié il y a 2 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions