Browse Source

Implement Session idle time out

tags/v0.41.0
Matthieu DERASSE 8 years ago
parent
commit
3542a1f534
2 changed files with 6 additions and 0 deletions
  1. +4
    -0
      openssh/files/sshd_config
  2. +2
    -0
      pillar.example

+ 4
- 0
openssh/files/sshd_config View File

{{ option_default_uncommented('SyslogFacility', 'AUTH') }} {{ option_default_uncommented('SyslogFacility', 'AUTH') }}
{{ option_default_uncommented('LogLevel', 'INFO') }} {{ option_default_uncommented('LogLevel', 'INFO') }}


# Session idle time out
{{ option_default_uncommented('ClientAliveInterval', 0) }}
{{ option_default_uncommented('ClientAliveCountMax', 3) }}

# Authentication: # Authentication:
{{ option_default_uncommented('LoginGraceTime', 120) }} {{ option_default_uncommented('LoginGraceTime', 120) }}
{{ option_default_uncommented('PermitRootLogin', 'yes') }} {{ option_default_uncommented('PermitRootLogin', 'yes') }}

+ 2
- 0
pillar.example View File

ServerKeyBits: 768 ServerKeyBits: 768
SyslogFacility: AUTH SyslogFacility: AUTH
LogLevel: INFO LogLevel: INFO
ClientAliveInterval: 0
ClientAliveCountMax: 3
LoginGraceTime: 120 LoginGraceTime: 120
PermitRootLogin: 'yes' PermitRootLogin: 'yes'
PasswordAuthentication: 'no' PasswordAuthentication: 'no'

Loading…
Cancel
Save