How to to know SSH port on the cPanel server?

Steps to know SSH port of cPanel server -

1. Login to WHM with your login details.
2. Go to restart servicees.
3. Restart SSH server. Once service get restart you will get below information -
Waiting for “sshd” to restart ………waiting for “sshd” to initialize ………finished.
Service Status
sshd (/usr/sbin/sshd) running as root with PID 904715 (process table check method)
Startup Log
Starting sshd: [ OK ]
Log Messages
Apr 6 05:48:40 server sshd[904715]: Server listening on :: port 8872.
Apr 6 05:48:40 server sshd[904715]: Server listening on 0.0.0.0 port 8872.
Apr 6 05:48:39 server sshd[4031]: Received signal 15; terminating.
sshd restarted successfully.
That's it!

In the above output, you can see 8872 is the SSH port.
  • 8 Users Found This Useful
Was this answer helpful?

Related Articles

#1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation

While running one query from cPanel >> PhpMyAdmin, I was getting this error message -#1227...

root @hostname emails are frozen on the cPanel server

I have configured WHM >> Edit System Mail Preferences page but emails are not getting...

Install PHP-SSH2 extension in cPanel

PHP SSH2 extension to be loaded into the cPanel server as this module is not available inside...

How to check the PHP version and configuration for your website?

'phpinfo.php' is the file which is used for checking the PHP version and configuration on cPanel...

Powered by WHMCompleteSolution