Skip to content

Instantly share code, notes, and snippets.

@simmsb
Created December 8, 2025 21:32
Show Gist options
  • Select an option

  • Save simmsb/460e683d15fd9b4e7eedb979b0cc504e to your computer and use it in GitHub Desktop.

Select an option

Save simmsb/460e683d15fd9b4e7eedb979b0cc504e to your computer and use it in GitHub Desktop.
[Unit]
Description=OpenBSD Secure Shell server
Documentation=man:sshd(8) man:sshd_config(5)
After=network.target
[Service]
EnvironmentFile=-/etc/default/ssh
ExecStartPre=/usr/sbin/sshd -t
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
ExecReload=/usr/sbin/sshd -t
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartPreventExitStatus=255
Type=notify
RuntimeDirectory=sshd
RuntimeDirectoryMode=0755
[Install]
WantedBy=multi-user.target
Alias=sshd.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment