Sunday, December 21, 2014

centos - SSH broken due to chmod -R /*

I made a total mistake here. Anyway I ran chmod -R 777 /* and immediately regretted my decision.



I had to boot into single user mode to and ran chmod -R 755 /etc/* in order to login to the server.



The only problem is ssh now and obvious security issues.




How do I get SSH working again?

No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...