I had to go to webmin | networking | linux-firewall and change the line:
If protocol is TCP and destination port is 22 and state of connection is NEW
from 22 to the new port number.
I had done that before… but then I overlooked the ‘apply configuration’ button. Once I applied it, all is working.
I actually have two machines I am setting up, same thing occurred on both. I changed the port in the ssh settings, and then had to update it in the linux firewall settings (and then, um, actually apply the new settings!).
“you should change webmin’s port number as well”… yes, did that without any trouble, it was just the ssh that I had trouble with.
Thank you, I appreciate all the help I have received through this forum and the work that goes into virtualmin. It’s much more useful for me than those other panel things
This helped me also. First I was confused by this message **Warning!** It appears that FirewallD is being used to generate your system's firewall. Maybe you should use the [FirewallD module](https://00387.monster:10000/firewalld/) instead.
but searching this forum I found out that configuration persist on Linux Firewall
My port is now changed. Next thing is to forbid root to log in.