Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Sep 2003
    Posts
    187

    Default 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.

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    Cleveland, Ohio
    Posts
    378

    Default

    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.

  3. #3
    Member
    Join Date
    Sep 2003
    Posts
    187

    Default

    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?

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    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

    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

  5. #5
    Registered User
    Join Date
    Jul 2006
    Posts
    2

    Default 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.

  6. #6
    Member
    Join Date
    Nov 2005
    Posts
    147

    Default

    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

  7. #7
    Registered User
    Join Date
    Jul 2006
    Posts
    2

    Default Thanks HelloAdam

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

    again thanks for the help.

    Josh

Similar Threads & Tags
Similar threads

  1. E-mail Alert on Root SSH Login
    By crazyaboutlinux in forum New User Questions
    Replies: 6
    Last Post: 06-09-2009, 06:42 AM
  2. WHM Access Denied Suddenly and SSH cannt login
    By don_will in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-12-2009, 01:11 AM
  3. Create SSH Keys and login using putty - access denied
    By isputra in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 05-05-2008, 10:34 PM
  4. ssh root access denied.
    By hmos11 in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 03-17-2006, 07:19 AM
  5. WHM root login lost - ssh still OK
    By dennism in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 06-23-2004, 05:24 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube