var sidebar_align = 'right';
var content_container_margin = parseInt('290px');
var sidebar_width = parseInt('270px');
SSHD failed after I changed PermitRootLogin
I was going to secure SSH a little bit and I changed
# PermitRootLogin yes
and instantly PuTTY died and SSHD failed.
I will not restart via WHM and a reboot did not fix it.
I changed the port earlier on and it worked fine since I did it a couple hrs ago.
I have root access and another user in the wheel group to login into the server.
Are you able to login to WHM without any difficulties? And did you restart sshd service after making changes in the SSH configuration?
I'm in WHM right now.. I've tried to restart SSHD 10x or more. No good.
Originally Posted by
I wasn't able to restart SSHD because after I saved sshd_config PuTTY died, basically the server cut me off and SSHD failed at the same time and its been broken since then.
I found this doing some Advance Googling
I think I'm going to tried that and see what happens.
The Autofixer is a collection of scripts that can be run from WHM to fix some common issues not otherwise fixable or accessible from command line.
safesshrestart — Restores SSH Config and restarts SSH, should you be locked out.
SSHD back online
Nice to here with this fix.
I went back to sshd_config and changed the port and disabled root login, restarted and no problems..
Originally Posted by
So I can't imagine what went wrong the first time.
Correct. But until unless you restart the ssh service, it should not happen like this, as per my knowledge.
never had problem on securing SSHD, that a bit strange problem you had.
any way, thanks for the info about the scripts
Half Dedi .com
• Half Dedicated Half Price
We provide affordable VPS hosting solution Singapore datacenter
Weird issue. Whenever we make changes to the SSH configuration file we make sure there are no syntax errors. The way you do this is,
So if there are any errors you would see them and can be resolved which otherwise cannot remotely if you restart the daemon.
[root@server ~]# /usr/sbin/sshd -t
By Marcelo Ramone in forum Hosting Security and Technology
Last Post: 09-04-2008, 10:17 PM
By X-x-X in forum Hosting Security and Technology
Last Post: 01-15-2008, 03:18 PM
By robocap in forum Hosting Security and Technology
Last Post: 05-23-2007, 02:56 AM
By crzy in forum Hosting Security and Technology
Last Post: 01-27-2007, 10:31 PM
By [JZ] in forum Hosting Security and Technology
Last Post: 01-14-2006, 08:56 AM
Related Posts from theWHIR.com
Tags for this Thread