unit ssh.service could not be found.
时间: 2023-09-03 09:14:24 浏览: 144
回答: 根据引用中提供的信息,出现 "unit ssh.service could not be found" 错误的原因是因为系统没有安装 sshd 服务。为了解决这个问题,您可以按照以下步骤进行操作:
1. 检测是否安装了 ssh 服务: 使用命令 "ps -e | grep ssh" 来检测是否已经安装了 ssh 服务。如果只有 ssh-agent 而没有 sshd 服务,么说明 sshd 服务没有安装。
2. 安装 sshd 服务: 使用命令 "sudo apt-get install openssh-server" 来安装 sshd 服务。
3. 启动 sshd 服务: 使用命令 "/etc/init.d/ssh start" 来启动 sshd 服务。
4. 再次检测是否安装成功: 使用命令 "ps -e | grep ssh" 再次检测是否安装成功,您应该能够看到 sshd 服务。
通过以上步骤,您应该能够成功解决 "unit ssh.service could not be found" 错误,并且能够连接到远程服务器了。<span class="em">1</span>
#### 引用[.reference_title]
- *1* [Unit sshd.service could not be found.](https://blog.csdn.net/weixin_49223002/article/details/123028272)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![](https://csdnimg.cn/download_wenku/file_type_ask_c1.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![conf](https://img-home.csdnimg.cn/images/20210720083646.png)