Author Topic: SSH Port change  (Read 226 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
SSH Port change
« on: August 23, 2018, 08:08:12 PM »
Ok, so I've successfully changed my ssh port and it is working fine.  However, I really wanted to change it to something completely unguessable - like 23456 (not actually that, but like that).  However, anytime I change it to anything that does not start with 22 and is only 4 characters long, it doesn't work.

Suggestions? 

Offline
****
Re: SSH Port change
« Reply #1 on: August 23, 2018, 08:16:23 PM »
It shouldnt happen like that. What port you are using for example and how you are changing it?

Offline
*
Re: SSH Port change
« Reply #2 on: August 24, 2018, 06:01:43 AM »
VPS & Dedicated server provider with included FREE Managed support for CWP.
http://www.studio4host.com/

*** Don't allow that your server or website is down, choose hosting provider with included expert managed support for your CWP.

Offline
**
Re: SSH Port change
« Reply #3 on: August 27, 2018, 01:11:37 PM »
I just changed yesterday to a 4 digit one (starting with 3) with no problem.

Offline
*
Re: SSH Port change
« Reply #4 on: August 27, 2018, 10:03:15 PM »
I want to change it to a 5-digit port.  I've successfully changed it to a 4-digit port, but can't get a 5-digit to work. 

I've tried 3269, 8123, 32691 and none of these work.  That is after following the http://wiki.centos-webpanel.com/how-to-change-ssh-port.  My current port - 2222 - does work.
« Last Edit: August 27, 2018, 10:19:23 PM by LadyVanadis »

Offline
**
Re: SSH Port change
« Reply #5 on: August 28, 2018, 06:43:26 AM »
Have you checked this guide? It has a 5 digit port in the example.
http://wiki.centos-webpanel.com/csflfd-firewall-configuration

Offline
*
Re: SSH Port change
« Reply #6 on: August 28, 2018, 06:37:20 PM »
Looked at it.  Tried this:

# Allow incoming TCP ports
TCP_IN = "20,21,29950,25,53,80,110,143,443,465,587,993,995,2030,2031,2082,2083,2086,2087,2095,2096,2222,3269,8123,32691"

# Allow outgoing TCP ports
TCP_OUT = "20,21,29950,25,53,80,110,113,443,2030,2031,2082,2083,2086,2087,2095,2096,587,993,995,2222,3269,8123,32691"

And this in my sshd_config:
#
Port 3269
Port 8123
Port 32691
Port 2222
Port 29950

Only 2222 works.  Everything else fails.