Logo

How to Enable SSH on Ubuntu 24.04

Mar 14, 2024

To enable SSH on your Ubuntu 24.04 system, follow the steps below:

Step 1 : Update your package lists to ensure you have the latest information about available packages:

sudo apt update

Step 2 : Install the SSH server package:

sudo apt install openssh-server

Step 3 : Start the SSH service:

sudo systemctl start ssh

Step 4 : Check the status of the SSH service to ensure it's running without any issues:

sudo systemctl status ssh

Step 5 : Enable the SSH service to start automatically at boot:

Step 6 : If you have a firewall enabled (like UFW), allow SSH traffic so that you can connect to your system remotely:

sudo ufw allow ssh

Step 7 : Test the SSH connection to verify that it's working correctly:

ssh username@your_server_ip

Congratulations! You have successfully enabled SSH on your Ubuntu 24.04 system.

Recommended