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

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 at 11:51

1 Answer 1

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

 
discard

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.