ullalla

Well-Known Member
Jan 20, 2006
192
0
166
I want to change the default ssh port, I have checked for the port which I want to set is opened in firewall as well I have placed the port at sshd_config file with protocol 2 but still the new port is not taken place.

Can anyone having any idea on this?
 

LinuxTechie

Well-Known Member
Jan 22, 2011
502
14
68
cPanel Access Level
Root Administrator
Hello,

While using the specified port are you getting connection refused or connection timed out? It will be also good if you paste sshd_config's first portion here so that I can check whether it is specified correctly.
 

ullalla

Well-Known Member
Jan 20, 2006
192
0
166
Dear cPtechie

m getting "network error_ connection timed out" error

Here is sshd_config portion

Port 2794
#Protocol 2,1
Protocol 2
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

Let me know if you need any more details.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
You would not want to have two ports listed in the /etc/ssh/sshd_config file, so please remove the port that is not the one you do not want to use, then restart sshd again:

Code:
/etc/init.d/sshd restart
 

ullalla

Well-Known Member
Jan 20, 2006
192
0
166
Dear cPtechie,

There is only one port 2794 but still no success :(

any other solution ?
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Please contact your hosting provider to have them assist further then if the port isn't changing. We cannot really troubleshoot it further than what we have, and you cannot open a ticket with our support over SSH port issues because those aren't related to cPanel itself.