![Troubleshoot "Permission denied (Publickey)" or "Authentication failed, Permission denied" errors when accessing an EC2 instance Troubleshoot "Permission denied (Publickey)" or "Authentication failed, Permission denied" errors when accessing an EC2 instance](https://d1.awsstatic.com/ManarAbdullah_DUB0121.4edd56b7d563d06b966cf808e0325349f85de07a.jpg)
Troubleshoot "Permission denied (Publickey)" or "Authentication failed, Permission denied" errors when accessing an EC2 instance
![Fixed: Cannot SSH in Windows to AWS: UNPROTECTED PRIVATE KEY FILE Error. Permissions for private key are too open. This private key will be ignored. | by Guillermo Musumeci | Medium Fixed: Cannot SSH in Windows to AWS: UNPROTECTED PRIVATE KEY FILE Error. Permissions for private key are too open. This private key will be ignored. | by Guillermo Musumeci | Medium](https://miro.medium.com/fit/c/294/294/1*4WAindh5Stu-U3SIDUArGA.png)
Fixed: Cannot SSH in Windows to AWS: UNPROTECTED PRIVATE KEY FILE Error. Permissions for private key are too open. This private key will be ignored. | by Guillermo Musumeci | Medium
![php - just "permission denied" error if connecting aws server with the use of pem file - Stack Overflow php - just "permission denied" error if connecting aws server with the use of pem file - Stack Overflow](https://i.stack.imgur.com/JSZwN.png)