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


感谢阅读,祝君暴富!

相关推荐
Linux运维技术栈1 小时前
生产环境Linux应用目录迁移至LVM独立分区 标准化实战方案
linux·运维·服务器·lvm·逻辑卷
feasibility.2 小时前
SSH Agent Forwarding 与 tmux 排障笔记
linux·运维·服务器·经验分享·笔记·ssh
ShawnLiaoking2 小时前
Linux 会话窗口常开
linux·运维·服务器
230万光年的思念2 小时前
向日葵远程控制ubuntu24一直显示连接中
linux
IMPYLH3 小时前
Linux 的 dir 命令
linux·运维·服务器·数据库
fanged3 小时前
操作系统番外1(Linux的测试体系)(TODO)
linux·运维·服务器
123过去5 小时前
pixiewps使用教程
linux·网络·测试工具·算法·哈希算法
H_老邪5 小时前
Linux 与 Docker 常用命令
linux·运维·服务器·docker
yewq-cn6 小时前
linux 内核设备号
linux·运维·服务器
文静小土豆6 小时前
Linux 进程终止指南:理解 kill 与 kill -9 的核心区别与正确用法
linux·运维·服务器