Browse Source

add more authentication options

master
Niels Abspoel 8 years ago
parent
commit
641851632f
2 changed files with 4 additions and 0 deletions
  1. +2
    -0
      openssh/files/sshd_config
  2. +2
    -0
      pillar.example

+ 2
- 0
openssh/files/sshd_config View File

{{ option_default_uncommented('LoginGraceTime', 120) }} {{ option_default_uncommented('LoginGraceTime', 120) }}
{{ option_default_uncommented('PermitRootLogin', 'yes') }} {{ option_default_uncommented('PermitRootLogin', 'yes') }}
{{ option_default_uncommented('StrictModes', 'yes') }} {{ option_default_uncommented('StrictModes', 'yes') }}
{{ option_default_uncommented('MaxAuthTries', '6') }}
{{ option_default_uncommented('MaxSessions', '10') }}


{{ option('DSAAuthentication', 'yes') }} {{ option('DSAAuthentication', 'yes') }}
{{ option_default_uncommented('RSAAuthentication', 'yes') }} {{ option_default_uncommented('RSAAuthentication', 'yes') }}

+ 2
- 0
pillar.example View File

PermitRootLogin: 'yes' PermitRootLogin: 'yes'
PasswordAuthentication: 'no' PasswordAuthentication: 'no'
StrictModes: 'yes' StrictModes: 'yes'
MaxAuthTries: 6
MaxSessions: 10
RSAAuthentication: 'yes' RSAAuthentication: 'yes'
PubkeyAuthentication: 'yes' PubkeyAuthentication: 'yes'
IgnoreRhosts: 'yes' IgnoreRhosts: 'yes'

Loading…
Cancel
Save