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


感谢阅读,祝君暴富!

相关推荐
davenian4 分钟前
< OS 有关 > Ubuntu 24 SSH 服务器更换端口 in jp/us VPSs
linux·ubuntu·ssh
诚信爱国敬业友善25 分钟前
GUI编程(window系统→Linux系统)
linux·python·gui
sekaii26 分钟前
ReDistribution plan细节
linux·服务器·数据库
YH_DevJourney1 小时前
Linux-C/C++《C/8、系统信息与系统资源》
linux·c语言·c++
威哥爱编程2 小时前
Linux驱动开发13个实用案例
linux
去看日出2 小时前
Linux(centos)系统安装部署MySQL8.0数据库(GLIBC版本)
linux·数据库·centos
qq_448941082 小时前
10、k8s对外服务之ingress
linux·容器·kubernetes
weixin_387002152 小时前
Openssl之SM2加解密命令
安全·ubuntu·密码学·ssl·命令模式
张海森-1688202 小时前
ubuntu20.04重启后不显示共享文件夹
ubuntu
默凉2 小时前
Ubuntu 20.04源码安装opencv 4.5.0
opencv·ubuntu