aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/source/system/other/sshd-srv/run
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/source/system/other/sshd-srv/run')
-rw-r--r--src/lib/source/system/other/sshd-srv/run17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/lib/source/system/other/sshd-srv/run b/src/lib/source/system/other/sshd-srv/run
new file mode 100644
index 0000000..6282b83
--- /dev/null
+++ b/src/lib/source/system/other/sshd-srv/run
@@ -0,0 +1,17 @@
+#!@shebangdir@/execlineb -P
+
+# ISC license.
+# https://www.openssh.com/
+
+fdmove -c 2 1
+
+foreground { /bin/ssh-keygen -A }
+
+ifelse -n { /bin/sshd -t }
+{
+ exit 125
+}
+
+/bin/sshd
+ -D
+ -e