Created
December 8, 2025 21:32
-
-
Save simmsb/460e683d15fd9b4e7eedb979b0cc504e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [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