Correct the fixtures for debian 10 sshd_config

As the original author of the pr said: He added
the vanilla configuration files as spec tests. Since
the module uses it's own template, this won't work.

I copied the debian9 fixtures sshd_config since the
defaults in puppet are identical for debian 10.

Closes #323
This commit is contained in:
Jan Vansteenkiste 2020-02-27 09:51:50 +01:00 committed by Garrett Honeycutt
parent c77fc07eab
commit 7f1dae4a63
No known key found for this signature in database
GPG Key ID: 5F92FFE5632AC57B

View File

@ -1,124 +1,133 @@
# This file is being maintained by Puppet. # This file is being maintained by Puppet.
# DO NOT EDIT # DO NOT EDIT
# $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ # $OpenBSD: sshd_config,v 1.73 2005/12/06 22:38:28 reyk Exp $
# This is the sshd server system-wide configuration file. See # This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information. # sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin # This sshd was compiled with PATH=/usr/local/bin:/bin:/usr/bin
# The strategy used for options in the default sshd_config shipped with # The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where # OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the # possible, but leave them commented. Uncommented options change a
# default value. # default value.
#Port 22 #Port 22
#AddressFamily any Port 22
#ListenAddress 0.0.0.0 #Protocol 2,1
#ListenAddress :: Protocol 2
# HostKey for protocol version 1
#HostKey /etc/ssh/ssh_host_key
# HostKeys for protocol version 2
#HostKey /etc/ssh/ssh_host_rsa_key #HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key #HostKey /etc/ssh/ssh_host_dsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_ecdsa_key
# Ciphers and keying HostKey /etc/ssh/ssh_host_ed25519_key
#RekeyLimit default none
# Lifetime and size of ephemeral version 1 server key
#KeyRegenerationInterval 1h
#ServerKeyBits 1024
# Logging # Logging
# obsoletes QuietMode and FascistLogging
#SyslogFacility AUTH #SyslogFacility AUTH
SyslogFacility AUTH
#LogLevel INFO #LogLevel INFO
LogLevel INFO
# Authentication: # Authentication:
#LoginGraceTime 2m #LoginGraceTime 120
#PermitRootLogin prohibit-password LoginGraceTime 120
#PermitRootLogin yes
PermitRootLogin yes
#StrictModes yes #StrictModes yes
#MaxAuthTries 6 #MaxAuthTries 6
#MaxSessions 10
#RSAAuthentication yes
#PubkeyAuthentication yes #PubkeyAuthentication yes
PubkeyAuthentication yes
# Expect .ssh/authorized_keys2 to be disregarded by default in future. #AuthorizedKeysFile .ssh/authorized_keys
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
#AuthorizedPrincipalsFile none
#AuthorizedKeysCommand none
#AuthorizedKeysCommandUser nobody
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
#RhostsRSAAuthentication no
# similar for protocol version 2
#HostbasedAuthentication no #HostbasedAuthentication no
HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for # Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication # RhostsRSAAuthentication and HostbasedAuthentication
#IgnoreUserKnownHosts no #IgnoreUserKnownHosts no
IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files # Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes #IgnoreRhosts yes
IgnoreRhosts yes
# To disable tunneled clear text passwords, change to no here! # To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes #PasswordAuthentication yes
PasswordAuthentication yes
#PermitEmptyPasswords no #PermitEmptyPasswords no
# Change to yes to enable challenge-response passwords (beware issues with # Change to no to disable s/key passwords
# some PAM modules and threads) #ChallengeResponseAuthentication yes
ChallengeResponseAuthentication no ChallengeResponseAuthentication yes
# Kerberos options # Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes #KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes #KerberosTicketCleanup yes
#KerberosGetAFSToken no #KerberosGetAFSToken no
# GSSAPI options # GSSAPI options
#GSSAPIAuthentication no #GSSAPIAuthentication no
#GSSAPICleanupCredentials yes GSSAPIAuthentication yes
#GSSAPIStrictAcceptorCheck yes
#GSSAPIKeyExchange no
# Set this to 'yes' to enable PAM authentication, account processing, # Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will # and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication and # be allowed through the ChallengeResponseAuthentication mechanism.
# PasswordAuthentication. Depending on your PAM configuration, # Depending on your PAM configuration, this may bypass the setting of
# PAM authentication via ChallengeResponseAuthentication may bypass # PasswordAuthentication, PermitEmptyPasswords, and
# the setting of "PermitRootLogin without-password". # "PermitRootLogin without-password". If you just want the PAM account and
# If you just want the PAM account and session checks to run without # session checks to run without PAM authentication, then enable this but set
# PAM authentication, then enable this but set PasswordAuthentication # ChallengeResponseAuthentication=no
# and ChallengeResponseAuthentication to 'no'. #UsePAM no
UsePAM yes UsePAM yes
#AllowAgentForwarding yes # Accept locale-related environment variables
AcceptEnv LANG LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES
AcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT
AcceptEnv LC_IDENTIFICATION LC_ALL
#AllowTcpForwarding yes #AllowTcpForwarding yes
AllowTcpForwarding yes
#GatewayPorts no #GatewayPorts no
#X11Forwarding no
X11Forwarding yes X11Forwarding yes
#X11DisplayOffset 10 #X11DisplayOffset 10
#X11UseLocalhost yes #X11UseLocalhost yes
#PermitTTY yes X11UseLocalhost yes
PrintMotd no #PrintMotd yes
PrintMotd yes
#PrintLastLog yes #PrintLastLog yes
#TCPKeepAlive yes #TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no #PermitUserEnvironment no
#Compression delayed #Compression delayed
#ClientAliveInterval 0 #ClientAliveInterval 0
#ClientAliveCountMax 3 ClientAliveInterval 0
#UseDNS no ClientAliveCountMax 3
#ShowPatchLevel no
#PidFile /var/run/sshd.pid #PidFile /var/run/sshd.pid
#MaxStartups 10:30:100 #MaxStartups 10:30:100
#MaxSessions 10
#PermitTunnel no #PermitTunnel no
#ChrootDirectory none #ChrootDirectory none
#VersionAddendum none
# no default banner path # no default banner path
#Banner none #Banner none
Banner none
# Allow client to pass locale environment variables
AcceptEnv LANG LC_*
# override default of no subsystems # override default of no subsystems
Subsystem sftp /usr/lib/openssh/sftp-server Subsystem sftp /usr/lib/openssh/sftp-server
# Example of overriding settings on a per-user basis
#Match User anoncvs
# X11Forwarding no
# AllowTcpForwarding no
# PermitTTY no
# ForceCommand cvs server