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?
sudo service ssh restart
and see if you can SSH into itwhich
only searches the current user's path - for a non-privileged user, that might not include/usr/sbin
ssh
is a metapackage that should install bothopenssh-client
andopenssh-server