Results 1 to 9 of 9
-
08-11-2009, 04:07 AM #1Newbie
- Join Date
- Jul 2009
- Location
- Los Angeles
- Posts
- 19
SSHD failed after I changed PermitRootLogin
I was going to secure SSH a little bit and I changed
# PermitRootLogin yes
to
PermitRootLogin No
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.
I'm stumped.
CentOS 5.3
cPanel+WHM
-
08-11-2009, 04:10 AM #2WHT Addict
- Join Date
- May 2009
- Posts
- 157
Are you able to login to WHM without any difficulties? And did you restart sshd service after making changes in the SSH configuration?
-
08-11-2009, 04:17 AM #3Newbie
- Join Date
- Jul 2009
- Location
- Los Angeles
- Posts
- 19
I'm in WHM right now.. I've tried to restart SSHD 10x or more. No good.
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
http://www.docs.cpanel.net/twiki/bin..._WHM_Autofixer
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.
-
08-11-2009, 04:24 AM #4Newbie
- Join Date
- Jul 2009
- Location
- Los Angeles
- Posts
- 19
That worked..
SSHD back online
-
08-11-2009, 04:27 AM #5WHT Addict
- Join Date
- May 2009
- Posts
- 157
Nice to here with this fix.
-
08-11-2009, 04:33 AM #6Newbie
- Join Date
- Jul 2009
- Location
- Los Angeles
- Posts
- 19
-
08-11-2009, 04:39 AM #7WHT Addict
- Join Date
- May 2009
- Posts
- 157
Correct. But until unless you restart the ssh service, it should not happen like this, as per my knowledge.
-
08-11-2009, 05:14 AM #8Web Hosting Master
- Join Date
- Mar 2004
- Posts
- 822
never had problem on securing SSHD, that a bit strange problem you had.
any way, thanks for the info about the scriptsHalfDedi.com • Half Dedicated Half Price
We provide affordable VPS hosting solution Singapore datacenter
-
08-11-2009, 12:46 PM #9Web Hosting Guru
- Join Date
- May 2008
- Posts
- 340
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,
[root@server ~]# /usr/sbin/sshd -tTwitter : http://twitter.com/eth1networks
Contact Us : support[at]eth1.in
Similar Threads
-
The password for dragonpo could not be changed because: failed: missing arguments: ne
By Marcelo Ramone in forum Hosting Security and TechnologyReplies: 6Last Post: 09-04-2008, 10:17 PM -
sshd has failed, please contact the sysadmin
By X-x-X in forum Hosting Security and TechnologyReplies: 5Last Post: 01-15-2008, 03:18 PM -
succeeded sshd has failed, please contact the sysadmin.
By robocap in forum Hosting Security and TechnologyReplies: 3Last Post: 05-23-2007, 02:56 AM -
sshd has failed!!
By crzy in forum Hosting Security and TechnologyReplies: 3Last Post: 01-27-2007, 10:31 PM -
PermitRootLogin Help
By [JZ] in forum Hosting Security and TechnologyReplies: 7Last Post: 01-14-2006, 08:56 AM