#1 (permalink)  
Old 09-10-2005, 05:55 PM
Registered User
 
Join Date: Sep 2003
Posts: 168
Lestat
SSH root login DENIED

Anyone that can help me solve this issue it would be great.

OK the issue is I cannot login with my root account through ssh. I can login locally on the actual physical machine with root. I just cannot login through with ssh. I put password in and it says denied. Same thing with the users. Everything else works fine though. I can login to WHM and the cpanel for the clients. I can also ftp into all accounts as well. Running Cpanel on AS3.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 09-10-2005, 06:01 PM
Registered User
 
Join Date: Sep 2004
Location: Cleveland, Ohio
Posts: 378
Blue|Fusion is on a distinguished road
If you want to enable root ssh login do the following:
Open the file /etc/ssh/sshd_config in your favorite text editor. Look for the line that says PermitRootLogin no. Change the no to a yes and then restarted the sshd service.

If you want to keep SSH root login disabled (which many people do for security reasons), you need to add a user (or create a new user) and make that user belong to the wheel group. Once that's done, you can login to SSH as that wheel user, and then use the command su - to become the super user (root). You will be prompted for the root password when you issue that command, but again, that command only works if that user is in the wheel group.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 09-10-2005, 06:09 PM
Registered User
 
Join Date: Sep 2003
Posts: 168
Lestat
Ok first off thanks for the reply.

Ok I have gave a user access in wheel group and did manage shell access to enable to that account. Ok the other problem is now is that machine is 30 minutes for me to check those other settings. SSH worked before and was able to login prior to this. So it should be enable already. Still no go even that user gets a denied password when trying login. Any other ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 09-11-2005, 05:06 AM
chirpy's Avatar
Moderator
 
Join Date: Jun 2002
Location: Go on, have a guess
Posts: 13,495
chirpy will become famous soon enough
Are you using the OS vendor supplied openssh rpms or did you try to compile it yourself?

One thing you could try is to login to the console and do:

service sshd stop
sshd -d -d -D


This will run up the ssh daemon in debug mode and won't fork so you can see exactly what's happening when you attempt to connect in.
__________________
Jonathan Michaelson
cPanel Forum Moderator

Need your cPanel servers secured and tuned?
cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
http://www.configserver.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 11-17-2006, 08:31 PM
Registered User
 
Join Date: Jul 2006
Posts: 2
joshtheosh is on a distinguished road
how do you edit the sshd_config file?

Quote:
Originally Posted by Blue|Fusion View Post
If you want to enable root ssh login do the following:
Open the file /etc/ssh/sshd_config in your favorite text editor. Look for the line that says PermitRootLogin no. Change the no to a yes and then restarted the sshd service.

If you want to keep SSH root login disabled (which many people do for security reasons), you need to add a user (or create a new user) and make that user belong to the wheel group. Once that's done, you can login to SSH as that wheel user, and then use the command su - to become the super user (root). You will be prompted for the root password when you issue that command, but again, that command only works if that user is in the wheel group.
What is the command for editing the /etc/ss/sshd_config file when I am using Putty. I can get to the file list but don;t know how to edit it.

Thanks.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 11-17-2006, 09:15 PM
Registered User
 
Join Date: Nov 2005
Posts: 147
HelloAdam is on a distinguished road
Hey,

Use the command

Code:
nano FILENAME
In your case

Code:
nano /etc/ss/sshd_config
The X's on the screen is the CTRL button on your keyboard...

From,
Adam
__________________
cPanel Customer since November 2005
---
- 7 Servers running cPanel/WHM

Tutorials I have made:
- Transfer accounts from one server to another
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 11-18-2006, 01:29 AM
Registered User
 
Join Date: Jul 2006
Posts: 2
joshtheosh is on a distinguished road
Thanks HelloAdam

Thanks HelloAdam. I appreciate it. I actually figured out to use pico and that worked.

again thanks for the help.

Josh
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 01:59 PM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© cPanel Inc