Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

What I was doing before this happened?: I was tinkering trying to setup X server so I can open an app's GUI remotely so I installed "X Window System", "xclock" and uncommented "# ForwardX11 yes" from my "/etc/ssh/ssh_config". (never got it working but thats a whole other question)

Since that moment I'm not able to login as root from Putty (I get Access Denied). I can login as another user and I can "su" successfully so I know the password is right.

How can have direct access with root again?

share|improve this question
Are you sure you did not touch the PermitRootLogin setting in sshd_config? Would you mind pasting your sshd_config? And also check if /var/log/auth.log has anything to say as to why your root login is disallowed. –  ptman Oct 4 '12 at 20:32
Thats weird... theres a possibility that installing X Window could have changed my sshd_config? My sshd_config had PermitRootLogin=no –  Rhyuk Oct 4 '12 at 20:39
"My sshd_config had PermitRootLogin=no" then how did you manage to login as root remotely? –  Serge Oct 4 '12 at 23:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.