DEV Community

scohostings
scohostings

Posted on

How to Change the SSH Port on Ubuntu 24.04 (Updated method)

I recently published a quick guide on changing the default SSH port on Ubuntu 24.04.

The problem is that on Ubuntu 24.04, that old method often does not fully work anymore.

Changing the SSH port from the default 22 can help reduce automated login attempts and basic bot traffic against your server. In the post, I walk through editing the SSH configuration, allowing the new port through the firewall, restarting SSH safely, and testing the connection before closing your existing session.

You can read the full guide here:

How to Change SSH Port on Ubuntu 24.04

After you changed the port and enabled it on firewall you can use this Open port checker to check if the port is open and accessible from outside.

ubuntu #linux #ssh #servermanagement

Top comments (0)