recipe_debian_ssh.ts view source
(options: SshServiceOptions): Required<Pick<ServiceResource, "service" | "enabled" | "running" | "reload_on">> import {debian_ssh_service} from '@fuzdev/zap/recipe_debian_ssh.js'; Build the sshd service payload for Debian: systemd's ssh unit, enabled,
running, and reloaded when any of options.reload_on changes.
It targets ssh.service, which Debian runs by default. On Ubuntu 22.10 and later,
where ssh.socket starts it, ssh.service is the daemon that takes the socket from
systemd, so enabling it only starts sshd at boot as well. The one conflict is a
hand-enabled Accept=yes socket on Debian (ssh@.service per connection), which
contends with ssh.service for port 22: disable that socket first.
options
returns
Required<Pick<ServiceResource, "service" | "enabled" | "running" | "reload_on">>
the service payload.