[Others] ssh端口22修成别的端口号重启不生效 V23
Tofloor
poster avatar
autumner
deepin
2025-03-05 09:50
Author

ssh端口22修成别的端口号重启不生效

Reply Favorite View the author
All Replies
虔诚的阿库西斯教徒
deepin
2025-03-05 10:09
#1

先在终端中运行 systemctl status sshd看一下运行日志

Reply View the author
autumner
deepin
2025-03-05 10:18
#2

image.png

监听还是22端口,但配置文件

image.png

配置文件里已经修改并且重启了

Reply View the author
autumner
deepin
2025-03-05 10:28
#3

找到原因了,谢谢各位!

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

image.png

Reply View the author
zccrs
deepin
2025-03-05 17:44
#4
autumner

找到原因了,谢谢各位!

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

image.png

标记下已解决

Reply View the author