[Problem feedback] deepin V23 的sshd开机启动怎么配置
Tofloor
poster avatar
autumner
deepin
2025-03-04 16:32
Author

deepin V23 的sshd开机启动怎么配置

Reply Favorite View the author
All Replies
ㅤ旭旭哥
deepin
2025-03-04 16:39
#1

SSHD! 高级玩意儿啊!

Reply View the author
忘记、过去
deepin
2025-03-04 17:02
#2

sudo apt install openssh-server

仓库里提供的版本安装时会设置 sshd 开机自启的

Reply View the author
随机数
deepin
2025-03-04 18:57
#3

楼主的意思应该是已经装有sshd.server,而是没有默认启动吧。systemctl status ssh[d.service]看看是否是disable,如果是,则systemctl enable ssh[d.service],应该可以解决。

Reply View the author
autumner
deepin
2025-03-04 19:09
#4
随机数

楼主的意思应该是已经装有sshd.server,而是没有默认启动吧。systemctl status ssh[d.service]看看是否是disable,如果是,则systemctl enable ssh[d.service],应该可以解决。

谢谢!问题解决了,又出来个新问题,把端口22改10022后保存,重启后还是22端口,不知道什么原因了

Reply View the author
neko
deepin
Ecological co-builder
Resources Team Moderator
2025-03-04 20:35
#5
autumner

谢谢!问题解决了,又出来个新问题,把端口22改10022后保存,重启后还是22端口,不知道什么原因了

看看你改的文件

Reply View the author
autumner
deepin
2025-03-04 21:24
#6
neko

看看你改的文件

就是把/etc/ssh/sshd_config中的Port 10022然后保存,重启ssh服务

Reply View the author
neko
deepin
Ecological co-builder
Resources Team Moderator
2025-03-04 21:53
#7
autumner

就是把/etc/ssh/sshd_config中的Port 10022然后保存,重启ssh服务

那应该没问题才对,好奇怪。有没有取消#注释

Reply View the author
autumner
deepin
2025-03-05 10:30
#8

找到原因了,谢谢各位!

我把ssh.socket服务开启了,会覆盖sshd_config文件

image.png

Reply View the author