Unit ssh.service could not found

In this article, we will see the solution for below ssh client error.

Unit ssh.service could not found

Unit ssh.service could not found

Solution:

1. First, purge ssh server if any exists by running below command.

sudo apt-get remove --purge openssh-server

2. Now we have to install again by running below command.

sudo apt-get install openssh-server

This prompts for confirmation, then click on Y and press enter.