Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

While logged-in in to "root" via ssh I disabled PermitRootLogin setting in /etc/ssh/sshd_config file.

It was advised to do so in the Cpanel's security adviser. Now I want to re-enable it for short period.

But because I've already disabled "rootLogin" by setting PermitRootLogin no ,I cant access /etc/ssh/sshd_config file to edit. Any ideas how to fix this issue?

share|improve this question
SSH with other user and than do su and enter password and enable root login in sshd_config. – Abhishek Anand Amralkar Apr 10 '14 at 11:51

Usually hosting providers have a javascript based shell. Login to the VPS using the webbased client and edit the sshd_config file.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.