Explicitly defined options as strings.

This fixes an issue where PyYAML was converting yes and no into True and False in the generated sshd_config file.
This commit is contained in:
matthew-parlette 2014-04-27 14:52:58 -04:00
parent cdfab3953d
commit 4b4f4b5d3d

View File

@ -5,30 +5,30 @@ sshd_config:
- /etc/ssh/ssh_host_rsa_key - /etc/ssh/ssh_host_rsa_key
- /etc/ssh/ssh_host_dsa_key - /etc/ssh/ssh_host_dsa_key
- /etc/ssh/ssh_host_ecdsa_key - /etc/ssh/ssh_host_ecdsa_key
UsePrivilegeSeparation: yes UsePrivilegeSeparation: 'yes'
KeyRegenerationInterval: 3600 KeyRegenerationInterval: 3600
ServerKeyBits: 768 ServerKeyBits: 768
SyslogFacility: AUTH SyslogFacility: AUTH
LogLevel: INFO LogLevel: INFO
LoginGraceTime: 120 LoginGraceTime: 120
PermitRootLogin: yes PermitRootLogin: 'yes'
PasswordAuthentication: no PasswordAuthentication: 'no'
StrictModes: yes StrictModes: 'yes'
RSAAuthentication: yes RSAAuthentication: 'yes'
PubkeyAuthentication: yes PubkeyAuthentication: 'yes'
IgnoreRhosts: yes IgnoreRhosts: 'yes'
RhostsRSAAuthentication: no RhostsRSAAuthentication: 'no'
HostbasedAuthentication: no HostbasedAuthentication: 'no'
PermitEmptyPasswords: no PermitEmptyPasswords: 'no'
ChallengeResponseAuthentication: no ChallengeResponseAuthentication: 'no'
X11Forwarding: yes X11Forwarding: 'yes'
X11DisplayOffset: 10 X11DisplayOffset: 10
PrintMotd: no PrintMotd: 'no'
PrintLastLog: yes PrintLastLog: 'yes'
TCPKeepAlive: yes TCPKeepAlive: 'yes'
AcceptEnv: "LANG LC_*" AcceptEnv: "LANG LC_*"
Subsystem: "sftp /usr/lib/openssh/sftp-server" Subsystem: "sftp /usr/lib/openssh/sftp-server"
UsePAM: yes UsePAM: 'yes'
openssh: openssh:
auth: auth: