Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

The service “sshd” appears to be down.

Discussion in 'General Discussion' started by Santi109, Oct 17, 2017.

  1. Santi109

    Santi109 Registered

    Joined:
    Oct 17, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cambodia
    cPanel Access Level:
    Root Administrator
    How to fix this error? my server provider told me that some iptables rules blocking most of the ports.. I am really beginner to Linux CentOS..

    Any help really appreciated..

    Thanks
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,792
    Likes Received:
    83
    Trophy Points:
    78
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hi,

    If you have a KVM, VNC, or IMPI access of your machine, then you will have to disable the firewall first on your machine..
    Did you change the SSH port?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Santi109

    Santi109 Registered

    Joined:
    Oct 17, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cambodia
    cPanel Access Level:
    Root Administrator
    I was reinstall sshd with success, what configuration I need to do?

    sshd was running. but i dont know if I need to make configuration to secure it?

    I dont change the SSH port. it is 22.. does i need to disable firewall now?
     
    #3 Santi109, Oct 18, 2017
    Last edited by a moderator: Oct 18, 2017
  4. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    42
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    To secure SSHD you have to change ssh port as well as disable direct root access.

    Did you installed any other firewall on your server ? like csf or apf ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. cPWilliamL

    cPWilliamL cP Technical Analyst II
    Staff Member

    Joined:
    May 15, 2017
    Messages:
    257
    Likes Received:
    29
    Trophy Points:
    103
    Location:
    America
    cPanel Access Level:
    Root Administrator
    As others have pointed out, you should:
    1. Change the SSH port and ensure the new port is open in iptables
    2. Setup a wheel user and disable root SSH access
    3. Setup SSH keys and disable password authentication
    The following documentation should be helpful:
    Manage Wheel Group Users - Documentation - cPanel Documentation
    Manage root's SSH Keys - Documentation - cPanel Documentation
    SSH Password Authorization Tweak - Documentation - cPanel Documentation

    It's best to make these changes via console access, that way, if a change you make results in no access, you can easily revert.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    SysSachin likes this.
  6. Santi109

    Santi109 Registered

    Joined:
    Oct 17, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Cambodia
    cPanel Access Level:
    Root Administrator
    I think there is not other firewall. it just iptables.. does any port that haven't been used would be okay?

    Does console access mean IPMI would be suitable? Thank you for the documentation..
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice