Posts

Showing posts from February 18, 2019

Unable to login to ec2 instance after running “sudo chmod 2770 /”

Image
1 I am new to linux and AWS. I ran sudo chmod 2770 / command on my ec2 instance and after that I was getting Permission denied on everything I was doing(even using ls or cd) So I exited my connection(using cygwin) and tried to re-connect but now I get Permission denied (publickey,gssapi-keyex,gssapi-with-mic) I tried setting chmod 400 my.pem , chmod 600 my.pem , chmod 777 my.pem but nothing worked. I am trying to connect using ssh -i my.pem ec2-user@xx.xx.xx.x which was working fine earlier. What is the solution? linux amazon-web-services amazon-ec2 share | improve this question asked 58 mins ago ...