How to Change SSH port 🔢 in cPanel

How to Change SSH port 🔢 in cPanel

In order to change the SSH port and protocol, you will have to edit sshd_config

nano /etc/ssh/sshd_config
image 20 1024x580 - How to Change SSH port 🔢 in cPanel

Change Protocol 2,1 -> to Protocol 2
Change #Port 22 -> to some other port and uncomment it

Example:

Protocol 2
Port 2255
image 19 - How to Change SSH port 🔢 in cPanel

Then restart ssh service:

service sshd restart
image 21 - How to Change SSH port 🔢 in cPanel
whoami
Stefan Pejcic
Join the discussion

I enjoy constructive responses and professional comments to my posts, and invite anyone to comment or link to my site.