Steps to know SSH port of cPanel server -
1. Login to WHM with your login details.
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 829115 (process table check method)
sshd (/usr/sbin/sshd) running as root with PID 829115 (process table check method)
Startup Log
Starting sshd: [ OK ]
Starting sshd: [ OK ]
Log Messages
Feb 7 08:12:40 server sshd[829115]: Server listening on :: port 5321.
Feb 7 08:12:40 server sshd[829115]: Server listening on 0.0.0.0 port 5321.
Feb 7 08:12:39 server sshd[2041]: Received signal 15; terminating.
Feb 7 08:12:40 server sshd[829115]: Server listening on :: port 5321.
Feb 7 08:12:40 server sshd[829115]: Server listening on 0.0.0.0 port 5321.
Feb 7 08:12:39 server sshd[2041]: Received signal 15; terminating.
sshd restarted successfully.
That's it!
In the above output, you can see 5321 is the SSH port
In the above output, you can see 5321 is the SSH port