Closed hkbase closed 1 year ago
这里再提供一个以前的镜像版本openssh服务正常运行时的状态,作为对比参照
# systemctl status sshd
● ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: active (running) since Fri 2022-08-19 15:17:14 CST; 5 days ago
Docs: man:sshd(8)
man:sshd_config(5)
Main PID: 852 (sshd)
Tasks: 1 (limit: 2206)
Memory: 3.7M
CPU: 7.803s
CGroup: /system.slice/ssh.service
└─852 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups
Aug 24 19:35:27 onecloud sshd[16876]: Accepted password for root from 100.82.95.62 port 52218 ssh2
Aug 24 19:35:27 onecloud sshd[16876]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)
Aug 25 12:22:13 onecloud sshd[23008]: Accepted password for root from 100.82.95.62 port 49421 ssh2
Aug 25 12:22:13 onecloud sshd[23008]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)
Aug 25 12:28:31 onecloud sshd[23104]: Accepted password for root from 100.82.95.62 port 50947 ssh2
Aug 25 12:28:31 onecloud sshd[23104]: pam_unix(sshd:session): session opened for user root(uid=0) by (uid=0)
Warning: journal has been rotated since unit was started, output may be incomplete.
我刚刷完, 一样的问题
systemd
使用 sshd.socket
+ sshd@.service
对每个链接提供独立的 SSH daemon
。暂不清楚为啥默认安装激活的是 sshd.socket
。
参见ArchWiki: https://wiki.archlinux.org/title/OpenSSH#Daemon_management
在 23.02.0 遇到相同的故障
现在应该没问题了吧。有问题再reopen这个issue吧
刷入的镜像版本Armbian_22.08.0-trunk_Onecloud_bullseye_edge_5.18.0.burn.img https://github.com/hzyitc/armbian-onecloud/releases/tag/ci-20220824-144151-UTC 我是在登陆ssh之后,输入的下面的命令,22端口的服务变成了由init提供,而正常的openssh是dead的: