====== Ubuntu - SSH - Change the Port ====== Edit the **/etc/ssh/sshd_config** file, and change the **Port**: Port ---- ===== Restart sshd ===== sudo systemctl restart ssh or sudo /etc/init.d/ssh restart ---- **NOTE:** Remember to update firewall rules accordingly and ensure the new port is not used by another service.