systemctl status sshd. If it is stopped, test the configuration with sshd -t, fix the error it shows, and start it with /scripts/restartsrv_sshd. If SSH works but the alert continues, the monitor is probably checking the wrong port after a port change. Use your provider’s console if you cannot log in at all.What the alert means
cPanel runs a service monitor called chkservd. Every few minutes it checks that services such as Apache, Exim, MySQL and SSH respond. When a check fails, it tries to restart the service and emails the server contact with a message such as sshd has failed, please contact the sysadmin. It can mean that SSH really stopped, or that the check itself fails.
Step 1: get access to the server
If you can still log in over SSH, use that. If not, use the console in your provider’s control panel (VNC, KVM or IPMI). Console access does not depend on SSH, so it works even when sshd is down. WHM’s Terminal page is another option while WHM still works.
Step 2: check the SSH service
systemctl status sshd --no-pager
journalctl -u sshd -n 50 --no-pager # recent SSH log lines
ss -tlnp | grep sshd # which port SSH listens on
If the service is active (running) and listens on the port you expect, SSH is fine and the alert is about the monitor. Go to Step 4. If it is stopped or failed, continue with Step 3.
Step 3: fix a stopped SSH service
The most common cause is a mistake in /etc/ssh/sshd_config, often after changing the port or login settings. Test the file:
sshd -t
No output means the file is valid. Otherwise, the message names the line with the problem. Fix it, then restart SSH:
/scripts/restartsrv_sshd
# or
systemctl restart sshd
Keep your current session open, and test a new login in a second window before you close it. Other causes include a full disk (df -h), missing host keys (regenerate them with ssh-keygen -A), or another program using the SSH port.
Step 4: fix false alerts after a port change
If you moved SSH to a different port, the monitor and the firewall must both know about it:
- Open the new port in the firewall before you restart SSH. With CSF, add it to
TCP_INin/etc/csf/csf.confand runcsf -r. - In WHM, open Service Configuration > Service Manager and check that monitoring is enabled for the SSH daemon.
- Read the monitor’s log to see why the check fails:
tail -n 50 /var/log/chkservd.log. - If the check still uses the old port, restart the monitor with
/scripts/restartsrv_chkservdafter the SSH change, and contact support if the alerts continue.
Our CSF firewall guide shows how to open ports safely.
Change the SSH port safely
- Open the new port in the firewall first.
- Edit
/etc/ssh/sshd_configand setPort 2222(or your chosen port). - Run
sshd -tto test the file. - Restart SSH with
/scripts/restartsrv_sshd. - In a second window, log in with
ssh -p 2222 root@your-server-ip. - Only when the new login works, close the old port in the firewall.
A different port reduces automated login attempts, but it is not real protection on its own. SSH keys and turning off password logins matter more.
Prevent SSH lockouts
- ✓ Always test
sshd -tbefore restarting SSH. - ✓ Keep one session open while you test changes in another.
- ✓ Make sure you know how to reach the console in your provider’s control panel.
- ✓ Add your own IP address to the firewall allow list, so login protection never blocks you.
- ✓ Use the safe SSH practices in our SSH commands guide.
Need help with this?
Locked out of your server? Our team can restore access and harden SSH for you.
Frequently asked questions
What does “sshd has failed, please contact the sysadmin” mean?
cPanel’s service monitor could not reach the SSH service. Either SSH stopped, or the monitor’s check fails, for example after a port change.
How do I restart SSH on a cPanel server?
Run /scripts/restartsrv_sshd or systemctl restart sshd as root, after testing the configuration with sshd -t.
How can I fix SSH if I cannot log in?
Use the console in your provider’s control panel, or WHM’s Terminal page, to fix the configuration and restart SSH.
Is it safe to change the SSH port?
Yes, if you open the new port in the firewall first and test a login before closing the old one.
Where are the cPanel service monitor logs?
In /var/log/chkservd.log.
Related guides
- How to Optimize PHP Performance in cPanel with MultiPHP Manager & CloudLinux PHP Selector
- AlmaLinux 9 with cPanel: MySQL 8 to MariaDB 10.11 Guide
- How to Back Up and Restore a cPanel Account Over SSH
- How to Fix “/usr/bin/crontab Permissions Are Wrong” Error in cPanel
- How to Install or Uninstall CloudLinux from cPanel (Updated Guide)
