Ubuntu – Installed SSH but no SSHD found

sshsshd

I'm following this tutorial.

In the section on installing ssh in 16.04 I did:

sudo apt-get install ssh

I tested ssh with:

which ssh

It gave me a path indicating that it's working.

But when I tried:

which sshd

Nothing was produced. No file location no errors nothing?

How can I fix the sshd install?


EDIT:

In answer to steeldriver:

$ echo $path 
/home/hugh/.sdkman/candidates/java/current/bin:/home/hugh/anaconda3/bin:~/anaconda/bin:~/anaconda/bin:~/anaconda/bin:/home/hugh/bin:/home/hugh/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin

$ dpkg -L openssh-server
dpkg-query: package 'openssh-server' is not installed  
Use dpkg --info (= dpkg-deb --info) to examine archive files,  
and dpkg --contents (= dpkg-deb --contents) to list their contents.

I should probably mention that I am running all this on a stand alone machine I don't currently have access to a server. Could that explain the problem?

Best Answer

The best way to make this work is to install openssh-client package ( with the client tools) and the openssh-server package (with the server daemon):

sudo apt-get install openssh-client openssh-server

That should solve your problem.