Unit sshd.service could not be found.

天行健,君子以自强不息;地势坤,君子以厚德载物。


每个人都有惰性,但不断学习是好好生活的根本,共勉!


文章均为学习整理笔记,分享记录为主,如有错误请指正,共同学习进步。

文章目录


描述

使用putty连接Ubuntu虚拟机ip时报错,查看sshd状态时出现
Unit sshd.service could not be found

解决

先更新

linux 复制代码
sudo apt-get update

执行命令安装ssh

linux 复制代码
sudo apt-get install openssh-server

然后启用即可

linux 复制代码
sudo service sshd start

如果报错如下
Failed to start sshd.service: Unit sshd.service not found.

请参考以下文章解决:
Failed to start sshd.service: Unit sshd.service not found 问题解决


感谢阅读,祝君暴富!

相关推荐
Championship.23.243 小时前
Linux 3.0 锁机制与故障排查详解
linux·运维·服务器
天疆说3 小时前
Zotero Connector 在 Edge 里找不到桌面 Zotero(Linux / Zotero 9.0.6 / Edge 150)
linux·前端·edge
风123456789~5 小时前
【Linux专栏】ls 排除某个文件
linux·运维·服务器
IT曙光5 小时前
ubuntu apt-get离线源制作
linux·ubuntu
其实防守也摸鱼6 小时前
运维--学习阶段问题解答(1)(自测)
linux·运维·服务器·数据库·学习·自动化·命令模式
懒鸟一枚6 小时前
深入理解 Linux 内存、Swap 交换分区与分页机制的关系
java·linux·数据库
Darkwanderor7 小时前
对Linux的进程控制的研究
linux·运维·c++
bksczm10 小时前
linux之线程概念和控制
linux·开发语言·c++
爱网络爱Linux10 小时前
Linux proc 目录安全加固
linux·运维·rhce·rhca·红帽认证·proc 目录安全加固
hehelm10 小时前
Linux网络编程—TCP字典翻译系统
linux·开发语言·网络·c++·tcp/ip