I have a new web-admin and he mistakenly ran chmod -r 755 /etc to try and disallow our shell users from reading any other files. As a result, SSH on our server does not work. How can we fix this?
Asked
Active
Viewed 1,563 times
0
arestifo
- 11
1 Answers
3
You need to make the ssh server keys only readable by root again:
chmod 600 /etc/ssh/ssh_host_*_key
may do the job
Craig Miskell
- 4,296
-
1This worked! Thank you so much! If you have a BTC address, I'd be more than glad to send some your way :D – arestifo Mar 13 '15 at 05:15
sshdnot running. You'll really want to fix the other permissions as well. (Just as an example, have a look at/etc/shadow) – Håkan Lindqvist Mar 13 '15 at 05:47