How to Enable SSH On Ubuntu

#IT


Secure Shell (SSH) is a network protocol used for a secure connection between a client and a server. Each interaction between the server and a client is encrypted.

Install the OpenSSH server

sudo apt install openssh-server

Installing the OpenSSH server should automatically start the system process for SSH, you can confirm this by entering the following command

sudo systemctl status ssh

You should see a dialogue displaying a green dot to indicate that SSH is running on the system. If the SSH process is not running, retry the installation process.

if SSH is not enabled, it can be enabled by entering the following command

sudo systemctl start ssh
sudo systemctl enable ssh

Additionally, SSH can be disabled with

sudo systemctl stop ssh
sudo systemctl disable ssh