/etc/init/ssh.conf - Debian GNU/Linux 9 (stretch)

This is the default example configuration of ssh.conf provided by OpenSSH. This config file was generated by OpenSSH running on Debian 9.

It is located under: /etc/init/ssh.conf

    # 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

env SSH_SIGSTOP=1
expect stop

# '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; }

    mkdir -p -m0755 /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

    
  

Config Details

Location
/etc/init/ssh.conf
Operating system
Debian GNU/Linux 9 (stretch)
Length
29 lines
MD5 checksum
6cd55bc913a37a11a5599c4850f865e5

Usage

Download the raw file with wget or curl

Wget

wget -O ssh.conf.example http://exampleconfig.com/static/raw/openssh/debian9/etc/init/ssh.conf

cURL

curl http://exampleconfig.com/static/raw/openssh/debian9/etc/init/ssh.conf > ssh.conf.example