QT-DevOps / DevOpsIssues

This Repo will be used to demonstrate the Skills & Questions in DevOps
Apache License 2.0
27 stars 130 forks source link

Login error to AWS EC2 instance (Ubuntu) #956

Closed prrohith closed 3 years ago

prrohith commented 3 years ago

Hi,

I am trying to do ssh from powershell to my UBUNTU ece2 isntance. I get permission denied for my .pem file.

When i checked online i found that i need to give read permission (0400) to the .pem file.

But chmod 0400 doesn't work, do you the windows powershell commant to give acess?

srmanikanta commented 3 years ago

open gitbash and execute the chmod 400 <yourpemfie> it is a linux command but it works on gitbash. once you execute that command you will execute the ssh command from powershell or gitbash.