
If you can access WHM/cPanel of the server and cant SSH into the server you can try this method.
# Restart SSH Deamon in Safe Mode using HTTP
http://X.X.X.X:2086/scripts2/autofixer
# Restart SSH Deamon in Safe Mode using HTTPS
https://X.X.X.X:2087/scripts2/autofixer
# type/enter script name
safesshrestart
You can also try this, do to not forget to login to WHM first and then COPY and PASTE this to address bar of your web browser:
# Direct URL for SSH Deamon Restart in Safe Mode using HTTP
http://X.X.X.X:2086/scripts2/doautofixer?autofix=safesshrestart
# Direct URL for SSH Deamon Restart in Safe Mode using HTTPS
https://X.X.X.X:2087/scripts2/doautofixer?autofix=safesshrestart
NOTE: do not forget to replace X.X.X.X with your domain...