hosted by liquidweb


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

Hosting Security and Technology Configuring and optimizing web hosting servers and operating systems, developing administration scripts, building servers, protecting against hackers, and general security (SSL certificates, etc.)
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

Reply With Quote


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?

Reply With Quote
  #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.

Reply With Quote
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

Reply With Quote
  #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.

Reply With Quote
  #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.

Reply With Quote
  #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.

Reply With Quote
  #8  
Old 08-11-2009, 05:14 AM
markhard markhard is offline
Web Hosting Master
 
Join Date: Mar 2004
Location: Netherlands
Posts: 740
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

Reply With Quote
  #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 With Quote
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
cPanel Addresses User Concerns of Transfer and Backup Restore System Security Web Hosting News 2013-05-23 12:39:09
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
WHD 2012 - Legal Lessons for Web Hosts from the Megaupload.com Indictment Web Hosting News 2012-03-27 14:49:09
Datapipe Named Netcraft's Most Reliable Hosting Site in June Web Hosting News 2011-07-08 18:38:09


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?