First WIP of rework to lighttpd
This commit is contained in:
10
sshd/README.md
Normal file
10
sshd/README.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# Generate Host Keys
|
||||
ssh-keygen -A
|
||||
|
||||
# Must edit in /opt/etc/ssh/sshd_config
|
||||
PasswordAuthentication yes
|
||||
UsePAM yes
|
||||
PermitRootLogin yes
|
||||
|
||||
# Need to add ssh user in /opt/etc/passwd
|
||||
sshd:x:106:65534:Linux User,,,:/opt/run/sshd:/bin/nologin
|
||||
20
sshd/sshd.service
Normal file
20
sshd/sshd.service
Normal file
@@ -0,0 +1,20 @@
|
||||
[Unit]
|
||||
Description=OpenBSD Secure Shell server
|
||||
Documentation=man:sshd(8) man:sshd_config(5)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStartPre=/opt/usr/sbin/sshd -t
|
||||
ExecStart=/opt/usr/sbin/sshd -D
|
||||
ExecReload=/opt/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
|
||||
Reference in New Issue
Block a user