summary refs log tree commit diff
path: root/os/etc/s6-rc/src/sshd
diff options
context:
space:
mode:
Diffstat (limited to 'os/etc/s6-rc/src/sshd')
-rw-r--r--os/etc/s6-rc/src/sshd/run3
-rw-r--r--os/etc/s6-rc/src/sshd/type1
2 files changed, 4 insertions, 0 deletions
diff --git a/os/etc/s6-rc/src/sshd/run b/os/etc/s6-rc/src/sshd/run
new file mode 100644
index 0000000..18ea579
--- /dev/null
+++ b/os/etc/s6-rc/src/sshd/run
@@ -0,0 +1,3 @@
+#!/bin/execlineb -P
+foreground { redirfd -w 2 /dev/null ssh-keygen -A }
+exec /usr/sbin/sshd -D
diff --git a/os/etc/s6-rc/src/sshd/type b/os/etc/s6-rc/src/sshd/type
new file mode 100644
index 0000000..5883cff
--- /dev/null
+++ b/os/etc/s6-rc/src/sshd/type
@@ -0,0 +1 @@
+longrun