ssh installed but I get the error: Failed to start ssh.service: Unit ssh.service not found

The ssh binary, the SSH client, is provided by the openssh-client package, which is installed on your system.

The ssh service runs the SSH server, provided by the openssh-server package, which isn’t installed on your system.

The ssh package is a meta-package which installs both the client and the server.


You SSH package/daemon/service is not installed.

For installing the SSH service on Ubuntu, you run:

sudo apt-get install openssh-server

see Packages - openssh-server - xenial