Staff member
Apr 11, 2011
Hello :)

The images you provided indicate that SSH is not running on port 22. Did your data center or hosting provider let you know of a specific SSH port to use when they setup your server? If not, you can try resetting your SSH configuration from Web Host Manager with the following URL:

You would replace "IP" with the server's IP address. Note that this is simply a temporary instance of SSH. You will have to login and modify the /etc/ssh/sshd_config file when you have temporary SSH access to ensure it's running properly from that point on.

Thank you.


May 13, 2012
cPanel Access Level
Root Administrator
Re: Putty Error Fixed SSH Cpanel Script to Reset SSH Configuration via WHM

This Fix helped me LOG IN to my Server when SSH or SSHD.conf became corrupt.
I could not use putty to log into server. I could not How to Enable SSH via cPanel Tutorialdid not help

I can enable the SSH access from your cPanel SSH/Shell Access. But I had to Fix ssh from WHM these Tips and Tricks
help me fix ssh from whm.

If you are unable to login to cpanel server using ssh, the following script above resets the SSH service configuration

My Question is why in 2013 ssh corrupt? Which file in /etc/ssh/ is corrupting and why to lock me out?
I have
ls -l
Jan 29 01:03 ssh_config
Jan 29 01:10 sshd_config
Jun 22 2012 sshd_config.rpmnew
Sep 2 23:12 ssh_host_dsa_key
Sep 2 23:12
Sep 2 23:12 ssh_host_key
Sep 2 23:12
Sep 2 23:12 ssh_host_rsa_key
Sep 2 23:12

Thank You For Fixing SSH Cpanel Script Reset SSH Configuration via WHM when Locked out.

Yes I speak English college educated, I also speak in anti spam search engine so I can find my results and users can too. Lately I have found results from 2003 -2005 before I find relevant information apparently software no longer maintained for servers no longer maintained can't be archived by cPanel so It's my attempt at maintaining current relevant information easily available to myself and those who would look for the same information.

Question remains though what could be corrupting my ssh config file?


Well-Known Member
Feb 25, 2010
Houston, TX
cPanel Access Level
Root Administrator
sshd is part of the operating system, not part of cPanel. If /etc/ssh/sshd_config is changing without your knowledge, then you need to consider who else might have root access to your server and be able to change it. If /etc/ssh/sshd_config is literally becoming corrupt, as you say, then I would recommend rebooting the server into single-user mode and running an fsck (filesystem check), as well as doing hardware diagnostics on the hard drives.

Your data center should be able to help you with all of this, because sshd is not part of cPanel, and keeping the server online and accessible is a responsibility of the data center.