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 问题解决


感谢阅读,祝君暴富!

相关推荐
Sokach101511 小时前
Linux Shell 脚本从零到能用:一个新手的一天学习总结
linux
AlfredZhao1 天前
Docker 容器时区不对,`timedatectl` 不存在怎么办?
linux·timezone
zzzzzz3102 天前
9K Star 炸裂开源!这个 C 语言写的代码知识图谱,把 Linux 内核索引压缩到了 3 分钟
linux·服务器·sql
XIAOHEZIcode2 天前
Linux系统鼠标偏移常见原因以及修复方案
linux·运维·游戏
A小辣椒4 天前
TShark:Wireshark CLI 功能
linux
A小辣椒4 天前
TShark:基础知识
linux
AlfredZhao5 天前
OCI 明明分配了 200G 系统盘,为什么 df 只看到 30G?
linux·oci
AlfredZhao5 天前
vi 删除指定范围的行,不用再反复按 dd
linux·vi
用户9718356334665 天前
银河麒麟 KY10 申威(SW64) 安装 nginx-1.16.1-2.p01.ky10.sw_64.rpm 详细步骤
linux
猪脚踏浪5 天前
linux 拷贝文件或目录到指定的位置
linux