If you are unable to connect to a cpanel server via ssh using port 22, resetting the ssh configuration port to alternate one will fix the issue. For doing that, login to your whm on non secure port (2086) and
To change the SSH port login as root, and edit /etc/ssh/sshd_config Find the line that says Port 22 and change 22 to any number between 1024->65535 (above 30000 is best) and save the file. Once done, run: /etc/init.d/sshd restart Now