summaryrefslogtreecommitdiff
path: root/ssh.conf
diff options
context:
space:
mode:
authorJohn Denker <jsd@av8n.com>2013-11-06 00:00:04 (GMT)
committerJohn Denker <jsd@av8n.com>2013-11-06 00:02:59 (GMT)
commit8719931af04b7073ece38507a35a6e975d2ac2f7 (patch)
tree21b07c84ddfd08dc6474d5e7b84bac8548202536 /ssh.conf
parent634d365a03cb0581a062cd3cf4db9ae69f1cde26 (diff)
original, as distributed
Diffstat (limited to 'ssh.conf')
-rw-r--r--ssh.conf27
1 files changed, 27 insertions, 0 deletions
diff --git a/ssh.conf b/ssh.conf
new file mode 100644
index 0000000..21a6bc5
--- /dev/null
+++ b/ssh.conf
@@ -0,0 +1,27 @@
+# ssh - OpenBSD Secure Shell server
+#
+# The OpenSSH server provides secure shell access to the system.
+
+description "OpenSSH server"
+
+start on runlevel [2345]
+stop on runlevel [!2345]
+
+respawn
+respawn limit 10 5
+umask 022
+
+# 'sshd -D' leaks stderr and confuses things in conjunction with 'console log'
+console none
+
+pre-start script
+ test -x /usr/sbin/sshd || { stop; exit 0; }
+ test -e /etc/ssh/sshd_not_to_be_run && { stop; exit 0; }
+ test -c /dev/null || { stop; exit 0; }
+
+ mkdir -p -m0755 /var/run/sshd
+end script
+
+# if you used to set SSHD_OPTS in /etc/default/ssh, you can change the
+# 'exec' line here instead
+exec /usr/sbin/sshd -D