Commit 4fc1c2c1 authored by Lukas Fleischer's avatar Lukas Fleischer
Browse files

Add systemd unit files for the AUR sshd



Signed-off-by: default avatarLukas Fleischer <archlinux@cryptocrack.de>
parent 176014a5
......@@ -37,6 +37,9 @@ Setup on Arch Linux
# useradd -U -d /srv/http/aur -c 'AUR user' aur
# chown aur:aur /srv/http/aur/.ssh/
8) Run the sshd as the new user.
8) Add, enable and start systemd unit files for the new sshd:
$ /srv/http/aur/openssh/sshd -f /srv/http/aur/.ssh/sshd_config
# cp /srv/http/aur/conf/aur-sshd.socket /etc/systemd/system/
# cp /srv/http/aur/conf/aur-sshd@.service /etc/systemd/system/
# systemctl enable aur-sshd.socket
# systemctl start aur-sshd.socket
[Socket]
ListenStream=2222
Accept=yes
[Install]
WantedBy=sockets.target
[Unit]
Description=AUR OpenSSH Per-Connection Daemon
[Service]
ExecStart=-/srv/http/aur/openssh/sshd -i -f /srv/http/aur/.ssh/sshd_config
User=aur
StandardInput=socket
StandardError=syslog
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment