diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-12-29 13:28:08 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2014-12-29 13:28:08 +0100 |
commit | 4fc1c2c10c9c359480561927a0b0eb0a6fab9fe1 (patch) | |
tree | 824384365daada40783cc51b614774ef49749018 | |
parent | 176014a5d7bc17dc9528a01df1280b09a3505a8d (diff) | |
download | aur-4fc1c2c10c9c359480561927a0b0eb0a6fab9fe1.tar.gz aur-4fc1c2c10c9c359480561927a0b0eb0a6fab9fe1.tar.xz |
Add systemd unit files for the AUR sshd
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
-rw-r--r-- | INSTALL | 7 | ||||
-rw-r--r-- | conf/aur-sshd.socket | 6 | ||||
-rw-r--r-- | conf/aur-sshd@.service | 8 |
3 files changed, 19 insertions, 2 deletions
@@ -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 diff --git a/conf/aur-sshd.socket b/conf/aur-sshd.socket new file mode 100644 index 00000000..5b0c3dfc --- /dev/null +++ b/conf/aur-sshd.socket @@ -0,0 +1,6 @@ +[Socket] +ListenStream=2222 +Accept=yes + +[Install] +WantedBy=sockets.target diff --git a/conf/aur-sshd@.service b/conf/aur-sshd@.service new file mode 100644 index 00000000..e29c2920 --- /dev/null +++ b/conf/aur-sshd@.service @@ -0,0 +1,8 @@ +[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 |