-T-

Member
May 21, 2005
5
0
151
I want the port for ssh off 22, so I changed it in /etc/sshd/sshd_config

But that took out ssl for whm and cpanel on port 2087 and 2083

I added those ports to sshd_config too, but still get a "don't speak ssl on this port" error when trying to connect

Any way to work around this?
 

linux7802

Well-Known Member
Dec 14, 2007
232
1
68
cPanel Access Level
Root Administrator
Solution

Follow the steps

Login into your server as root

pico -w /etc/ssh/sshd_config
Find the line '#Port 22' and uncomment it and change it to look like 'Port [Random high level port here]'.

For example we changes the port no22 to port no 322

Port 322
#Protocol 2,1
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
Now save the file and retsrat ssh service

If you have nay firewall then open the port no 322 in your server firewall and try to access server with the new SSH port no :)