The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

SSH access dont work

Discussion in 'General Discussion' started by Hildor, Mar 16, 2016.

  1. Hildor

    Hildor Registered

    Joined:
    Mar 16, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Curitiba - PR - Brasil
    cPanel Access Level:
    Root Administrator
    Hello everyone,
    I have a very strange problem.
    I can not access via SSH. But WHM and FTP login works fine.
    I can login to the WHM usually with root. But with the same password I can not access the SSH.
    The last time I had to access a month ago was working perfectly.

    Already ran the script http://xxxxxxx.com:2086/scripts2/doautofixer?autofix=safesshrestart
    When you restart the SSH it displays me:

    ------------------------------------
    Waiting for "sshd" to restart ......... waiting for "sshd" to initialize ......... finished.

    Service Status
    sshd (sshd: unknown [priv]) is running the root with PID 2921 (systemd check method).
    sshd (sshd: unknown [net]) is running the sshd with PID 2922 (systemd check method).
    sshd (sshd: unknown [priv]) is running the root with PID 2943 (systemd check method).
    sshd (sshd: unknown [net]) is running the sshd with PID 2944 (systemd check method).
    sshd (/ usr / sbin / sshd D) is running the root with PID 2969 (systemd check method).

    Startup Log
    Mar 16 12:56:11 server.xxxxx.com.br systemd [1]: Started OpenSSH server daemon.
    Mar 16 12:56:11 server.xxxxx.com.br systemd [1]: Starting OpenSSH server daemon ...
    Mar 16 12:56:11 server.xxxxx.com.br sshd [2969]: Server listening on port 22 0.0.0.0.
    Mar 16 12:56:11 server.xxxxx.com.br sshd [2969]: Server listening on :: port 22.
    -----------------

    Already I deactivated the cPHulk'm not installed CSF.
    When I log in it always refuses to password.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,829
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  3. Hildor

    Hildor Registered

    Joined:
    Mar 16, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Curitiba - PR - Brasil
    cPanel Access Level:
    Root Administrator
    Sorry but dont work.
    I read the Tutorial.
    Password Authentication is currently enabled
    I access in recovery mode the server and check the sshd_config file, PermitRootLogin Yes is active.
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,829
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Do you notice any specific messages in /var/log/secure in recovery mode that could help determine why your access is denied?

    Thank you.
     
  5. Hildor

    Hildor Registered

    Joined:
    Mar 16, 2016
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Curitiba - PR - Brasil
    cPanel Access Level:
    Root Administrator
    Its a problema with PAM. I edit the file /etc/pam.d/sshd and comment the last line atht required pam_shells.so
    Thanks a lot.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,829
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page