hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Hosting Security and Technology : SSHD failed after I changed PermitRootLogin
Reply

Forum Jump

SSHD failed after I changed PermitRootLogin

Reply Post New Thread In Hosting Security and Technology Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old 08-11-2009, 04:07 AM
totc totc is offline
Newbie
 
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



Sponsored Links
  #2  
Old 08-11-2009, 04:10 AM
sysgallery sysgallery is offline
WHT Addict
 
Join Date: May 2009
Posts: 156
Are you able to login to WHM without any difficulties? And did you restart sshd service after making changes in the SSH configuration?

  #3  
Old 08-11-2009, 04:17 AM
totc totc is offline
Newbie
 
Join Date: Jul 2009
Location: Los Angeles
Posts: 19
Quote:
Originally Posted by sysgallery View Post
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.
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
Quote:
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.
I think I'm going to tried that and see what happens.

Sponsored Links
  #4  
Old 08-11-2009, 04:24 AM
totc totc is offline
Newbie
 
Join Date: Jul 2009
Location: Los Angeles
Posts: 19
That worked..

SSHD back online

  #5  
Old 08-11-2009, 04:27 AM
sysgallery sysgallery is offline
WHT Addict
 
Join Date: May 2009
Posts: 156
Nice to here with this fix.

  #6  
Old 08-11-2009, 04:33 AM
totc totc is offline
Newbie
 
Join Date: Jul 2009
Location: Los Angeles
Posts: 19
Quote:
Originally Posted by sysgallery View Post
Nice to here with this fix.
I went back to sshd_config and changed the port and disabled root login, restarted and no problems..

So I can't imagine what went wrong the first time.

  #7  
Old 08-11-2009, 04:39 AM
sysgallery sysgallery is offline
WHT Addict
 
Join Date: May 2009
Posts: 156
Correct. But until unless you restart the ssh service, it should not happen like this, as per my knowledge.

  #8  
Old 08-11-2009, 05:14 AM
markhard markhard is offline
Web Hosting Master
 
Join Date: Mar 2004
Posts: 802
never had problem on securing SSHD, that a bit strange problem you had.

any way, thanks for the info about the scripts

__________________
HalfDedi.com Half Dedicated Half Price
We provide affordable VPS hosting solution Singapore datacenter

  #9  
Old 08-11-2009, 12:46 PM
eth1 eth1 is offline
Web 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,
Quote:
[root@server ~]# /usr/sbin/sshd -t
So if there are any errors you would see them and can be resolved which otherwise cannot remotely if you restart the daemon.

__________________
Twitter : http://twitter.com/eth1networks
Contact Us : support[at]eth1.in

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
The password for dragonpo could not be changed because: failed: missing arguments: ne Marcelo Ramone Hosting Security and Technology 6 09-04-2008 10:17 PM
sshd has failed, please contact the sysadmin X-x-X Hosting Security and Technology 5 01-15-2008 03:18 PM
succeeded sshd has failed, please contact the sysadmin. robocap Hosting Security and Technology 3 05-23-2007 02:56 AM
sshd has failed!! crzy Hosting Security and Technology 3 01-27-2007 10:31 PM
PermitRootLogin Help [JZ] Hosting Security and Technology 7 01-14-2006 08:56 AM

Related posts from TheWhir.com
Title Type Date Posted
Up to 63 Percent of Cloud Users Report Failed or Stalled Attempts to Deploy Public Cloud Web Hosting News 2014-07-02 13:59:51
cPanel Addresses User Concerns of Transfer and Backup Restore System Security Web Hosting News 2013-05-24 10:13:44
Weekend Reading – Top Web Hosting News from the Week of February 19-22, 2013 Web Hosting News 2013-02-23 09:00:58
SSHD Rootkit in the Wild Blog 2013-02-22 16:44:08
Heroku Responds to Customer Report of Ruby on Rails Performance Degradation Web Hosting News 2013-02-15 13:52:22


Tags
centos 5.3, failed, ssh, sshd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
Advertisement:
Web Hosting News:



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?