I cant change ssh port whatever I try and whatever guide I follow. Is there a special way to do it? I have tried in webmin and also using ssh but same result. As soon as I change I get no connection to host. If I change back to 22 it works directly. I have opened the new port in the FW and also tested with a disabled FW.
What do I do wrong??
No, and I only use UFW. I have a second vps with the same provider and its no problem with that one… Only difference is that it has Ubuntu 20.04, not 22.04 as the new one
I see no module for UFW. But, using the info above I confirmed I could connect to the server port 22. If I changed it to what’s listed above. No connect.
I don’t know the command line of UFW. Can you show us the proper command line output to show us UFW is indeed listening to the the new port you chose?
The netstat command is kinda useless when using port 22. You need to run it from the webmin terminal when the new port is supposedly in effect. That will show us that sshd is set to the new port as expected.
From the Webmin terminal:
Show us command line that shows us the correct port is open.
Show us the netstat that shows us what port sshd is listening on.
I’m not sure where you are changing this setting. Not sure why you won’t run the netstat from the webmin terminal as asked. You could have a port conflict. Hard to say, but it seems ssh isn’t listening on the port you think.
I have 3 vps servers up and running with the same provider. 2 is no problem, both on ubuntu 20.04. Only this one is not working properly… I think IO know what I am doing but it does not help