How to Install and Enable OpenSSH on Ubuntu?

You can install and enable OpenSSH on Ubuntu by following these steps:

Open a terminal window.

Run the following command to update the package list:

sudo apt-get update

Install OpenSSH by running the following command:

sudo apt-get install openssh-server

Once the installation is complete, OpenSSH should be automatically started. However, you can check its status by running:

sudo systemctl status ssh

This should show that OpenSSH is active and running.

If for some reason OpenSSH is not started, you can start it manually by running:

sudo systemctl start ssh

To enable OpenSSH to start automatically at boot, run:

sudo systemctl enable ssh

That’s it! OpenSSH should now be installed and enabled on your Ubuntu system.

Leave a Comment