SSH Connection Denied

cravend

Member
Apr 4, 2017
21
2
78
United States
cPanel Access Level
Root Administrator
Hello. I'm trying to connect to my server's root account through the PuTTY client on Windows. I imported my keys into the "Manage root's SSH Keys" tab on WHM. However, whenever I try to connect, before I can type anything in, I get an error that says "connection refused."
 

SysSachin

Well-Known Member
Aug 23, 2015
604
48
28
India
cPanel Access Level
Root Administrator
Twitter
Hello,

Make sure you are using correct SSH Port and the port is allow in server firewall.
Another possibility is that sshd service is not running on the server
 

cravend

Member
Apr 4, 2017
21
2
78
United States
cPanel Access Level
Root Administrator

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,216
463
Hello,

One available solution to try when SSH access fails is to start a temporary instance of SSH using the SafeSSHRestart Autofixer. Here's an example of the URL you would enter once logged into WHM:

Code:
https://IP:2087/cpsess12345678/scripts2/doautofixer?autofix=safesshrestart
You would replace "IP" with the server's IP address and the session number with what's displayed in your address bar after logging in to WHM. Note that this is simply a temporary instance of SSH that will run on a different port (23 by default), so you can login and determine what's wrong with the standard SSH service.

Thank you.
 

cravend

Member
Apr 4, 2017
21
2
78
United States
cPanel Access Level
Root Administrator
Hello,

One available solution to try when SSH access fails is to start a temporary instance of SSH using the SafeSSHRestart Autofixer. Here's an example of the URL you would enter once logged into WHM:

Code:
https://IP:2087/cpsess12345678/scripts2/doautofixer?autofix=safesshrestart
You would replace "IP" with the server's IP address and the session number with what's displayed in your address bar after logging in to WHM. Note that this is simply a temporary instance of SSH that will run on a different port (23 by default), so you can login and determine what's wrong with the standard SSH service.

Thank you.
This fixed it! Using the SSH command now works fine. Thank you for your help, you can mark it this closed.
 
  • Like
Reactions: cPanelMichael