我使用的是 ubuntu 20.04,我已经升级了 openssh 版本,但升级后版本服务显示激活状态。
ssh.service - OpenBSD Secure Shell server
Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
Active: activating (start) since Fri 2023-03-10 12:06:57 IST; 17s ago
Docs: man:sshd(8)
man:sshd_config(5)
Process: 964649 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS)
Cntrl PID: 964650 (sshd)
Tasks: 5 (limit: 9429)
Memory: 5.1M
CGroup: /system.slice/ssh.service
├─964650 sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups
├─964652 sshd: decoy [priv]
├─964785 sshd: decoy@pts/0
├─964786 -bash
└─964794 sudo su