Looking for a working example of sshd_config setup fille
Peter Flynn
peter at silmaril.ie
Mon Aug 18 23:42:58 UTC 2025
On 19/08/2025 00:29, Karl Auer wrote:
> On Tue, 2025-08-19 at 00:07 +0100, Peter Flynn wrote:
>> Weirdly, it reports "Unit sshd.service could not be found."
>> I am surprised because I would have assumed that there needed to be
>> some service enabled for it to work.
>
> On Ubuntu, the service is called ssh, not sshd.
>
> Try "systemctl status ssh".
Makes more sense, thank you.
> ● ssh.service - OpenBSD Secure Shell server
> Loaded: loaded (/usr/lib/systemd/system/ssh.service; disabled; preset: ena>
> Active: active (running) since Sun 2025-08-17 09:31:38 IST; 1 day 15h ago
> TriggeredBy: ● ssh.socket
> Docs: man:sshd(8)
> man:sshd_config(5)
> Process: 50421 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCES>
> Main PID: 50422 (sshd)
> Tasks: 1 (limit: 23778)
> Memory: 2.7M (peak: 21.4M)
> CPU: 143ms
> CGroup: /system.slice/ssh.service
> └─50422 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
>
> Aug 17 09:31:38 noah systemd[1]: Starting ssh.service - OpenBSD Secure Shell se>
> Aug 17 09:31:38 noah sshd[50422]: Server listening on 0.0.0.0 port 22.
> Aug 17 09:31:38 noah sshd[50422]: Server listening on :: port 22.
> Aug 17 09:31:38 noah systemd[1]: Started ssh.service - OpenBSD Secure Shell ser>
etc etc
Peter
More information about the ubuntu-users
mailing list