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.

Was this answer helpful?

 Print this Article

Also Read

How to reset SSH port back to default port 22?

In some situations most of us may come across a problem that we are able to log into the WHM but...

587 sender verify fail for <email address>: No Such User Here

I was getting the error while sending email as -587 sender verify fail for <email address>:...

Failed: Account Restore Failed: “clean: Cannot cleanup top level directory:

While restoring the full cPanel backup file in 'tar.gz' format from WHM >> Backup >>...

How to install composer on cPanel server- Locally - inside the user's directory?

Composer is as tool which is used to manage the dependencies between the PHP softwares and...

ERROR :Tablespace for table exist. Please DISCARD the tablespace before IMPORT.

// While creating the table from cPanel >> PHPMyAdmin>> SQL, I was getting...

Powered by WHMCompleteSolution