Difference between revisions of "/etc/systemd/system/sshd.service"
Jump to navigation
Jump to search
(Created page with "<pre> [Unit] Description=OpenBSD Secure Shell server Documentation=man:sshd(8) man:sshd_config(5) After=network.target auditd.service ConditionPathExists=!/etc/ssh/sshd_not_to...") |
|||
(9 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | [Service] | + | [Unit] |
− | EnvironmentFile=-/etc/default/ssh | + | Description=OpenBSD Secure Shell server |
− | ExecStartPre=/usr/sbin/sshd -t | + | Documentation=man:sshd(8) man:sshd_config(5) |
− | ExecStart=/usr/sbin/sshd -D $SSHD_OPTS | + | After=network.target auditd.service |
− | ExecReload=/usr/sbin/sshd -t | + | ConditionPathExists=!/etc/ssh/sshd_not_to_be_run |
− | ExecReload=/bin/kill -HUP $MAINPID | + | |
− | KillMode=process | + | [Service] |
− | Restart=on-failure | + | EnvironmentFile=-/etc/default/ssh |
− | RestartPreventExitStatus=255 | + | ExecStartPre=/usr/sbin/sshd -t |
− | Type=notify | + | '''[[ExecStart]]'''=/usr/sbin/sshd -D $SSHD_OPTS |
− | RuntimeDirectory=sshd | + | ExecReload=/usr/sbin/sshd -t |
− | RuntimeDirectoryMode=0755 | + | ExecReload=/bin/kill -HUP $MAINPID |
− | + | KillMode=process | |
− | [Install] | + | Restart=on-failure |
− | WantedBy=multi-user.target | + | RestartPreventExitStatus=255 |
− | Alias=sshd.service | + | [[Type]]=notify |
− | + | RuntimeDirectory=sshd | |
+ | RuntimeDirectoryMode=0755 | ||
+ | |||
+ | [Install] | ||
+ | WantedBy=multi-user.target | ||
+ | Alias=sshd.service | ||
+ | == Related terms == | ||
+ | * <code>[[/etc/systemd/]]system/</code> | ||
+ | * <code>[[apt install openssh-server]]</code> | ||
== See also == | == See also == | ||
+ | * {{OpenSSH}} | ||
* {{systemctl}} | * {{systemctl}} | ||
+ | |||
+ | [[Category:Linux]] |
Latest revision as of 09:41, 13 December 2023
[Unit] Description=OpenBSD Secure Shell server Documentation=man:sshd(8) man:sshd_config(5) After=network.target auditd.service ConditionPathExists=!/etc/ssh/sshd_not_to_be_run [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
Related terms[edit]
See also[edit]
- OpenSSH (changelog):
/etc/ssh/sshd_config
|/etc/ssh/ssh_config
|~/.ssh/
|openSSL | sshd logs
|sftp
|scp
|authorized_keys
|ssh-keygen
|ssh-keyscan
|ssh-add
|ssh-agent
|ssh
|Ssh -O stop
|ssh-copy-id
|CheckHostIP
|UseKeychain
, OpenSSF, ~/.ssh/authorized_keys - Systemd services:
systemctl
[status | is-active | start | daemon-reload | stop | mask
|reload
|restart
|reboot
|enable
|disable
|cat
],systemctl list-units
,systemctl list-timers
,systemctl --failed
,systemctl get-default
,systemctl --help
,.service, .timer, .socket
,systemctl restart elasticsearch.service
,systemctl status apt-daily
,systemctl status oscapd
Advertising: