Should be simple but it does not work.
Using webmin to change port for ssh, apply changes but it does not work. I get no route to port.
The port is open in the firewall
What is wrong
You are probably doing this but when you ssh in to the server you are adding the new port to the command ? Reason I ask is if not port is supplied to ssh it will default to port 22 & if you have removed port 22 from your firewall rules you could get this error. try telnet to connect
telnet domain-name/ip port
where domain-name is your server name, ip is your server IP and port is your new ssh port, only supply either domain-name or ip not both. and see if it connects. If it fails I would suspect somehow the port is not open, I think your using CSF so it maybe worth checking in that module that the port is open and also check that the ssh server is up and running, run this as root
systemctl status sshd
and
lsof -i |grep sshd
if you can not ssh into the server use the webmin terminal option to run these commands
located at webmin->tools->terminal or here
I use the port also but as soon as I have changed port in the server I get no route to 1.1.1.1 port 5504. If I change back it work directly because both ports are still open in the fw
That I really doubt. I have 3 servers with them and the other 2 is no problem. Only difference is that they have no control panel. its email servers and all is controlled by ssh and the mail server UI
Number nine is the cloudhost. The only thing I dont understand is it why it is no problem with 2 servers out of 3. The only trouble is with the one with Webmin/Virtualmin on it