summaryrefslogtreecommitdiff
path: root/security/ssh6/files/sshd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'security/ssh6/files/sshd.sh')
-rw-r--r--security/ssh6/files/sshd.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/security/ssh6/files/sshd.sh b/security/ssh6/files/sshd.sh
new file mode 100644
index 00000000000..71b70f624e4
--- /dev/null
+++ b/security/ssh6/files/sshd.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+#
+# $NetBSD: sshd.sh,v 1.1 2000/03/20 02:25:32 itojun Exp $
+#
+if [ ! -f @SSH_CONF_DIR@/ssh_host_key ]
+then
+ @PREFIX@/bin/ssh-keygen -f @SSH_CONF_DIR@/ssh_host_key -N ''
+fi
+if [ -x @PREFIX@/sbin/sshd -a -f @SSH_CONF_DIR@/sshd_config ]
+then
+ @PREFIX@/sbin/sshd
+ echo -n ' sshd'
+fi
+exit 0