Skip to content

How to change the SSH port in Ubuntu, Debian and AlmaLinux

How to change the default SSH port 22 to another one without losing access to the server. Opening the port in the firewall, SELinux, Ubuntu 24.04 specifics and checking the connection.