已安装 SSH 但未找到 SSHD

Baz*_*man 6 ssh sshd

我正在关注本教程

在关于在 16.04 中安装 ssh 的部分中,我做了:

sudo apt-get install ssh
Run Code Online (Sandbox Code Playgroud)

我用以下方法测试了 ssh:

which ssh
Run Code Online (Sandbox Code Playgroud)

它给了我一条指示它正在工作的路径。

但是当我尝试时:

which sshd
Run Code Online (Sandbox Code Playgroud)

什么都没有产生。没有文件位置 没有错误 什么都没有?

如何修复 sshd 安装?


编辑:

对 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.
Run Code Online (Sandbox Code Playgroud)

我可能应该提一下,我在一台我目前无法访问服务器的独立机器上运行所有这些。这能说明问题吗?

小智 6

完成这项工作的最佳方法是安装 openssh-client 软件包(使用客户端工具)和 openssh-server 软件包(使用服务器守护程序):

sudo apt-get install openssh-client openssh-server
Run Code Online (Sandbox Code Playgroud)

那应该可以解决你的问题。