Browse Source

Merge pull request #72 from kyrias/AuthKeysCmd

Add AuthorizedKeysCommand support
master
Forrest 8 years ago
parent
commit
8d1e730907
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

@@ -81,6 +81,8 @@
{{ option_default_uncommented('RSAAuthentication', 'yes') }}
{{ option_default_uncommented('PubkeyAuthentication', 'yes') }}
{{ option('AuthorizedKeysFile', '%h/.ssh/authorized_keys') }}
{{ option('AuthorizedKeysCommand', 'none') }}
{{ option('AuthorizedKeysCommandUser', 'nobody') }}

# Don't read the user's ~/.rhosts and ~/.shosts files
{{ option_default_uncommented('IgnoreRhosts', 'yes') }}

+ 2
- 0
pillar.example View File

@@ -21,6 +21,8 @@ sshd_config:
MaxSessions: 10
RSAAuthentication: 'yes'
PubkeyAuthentication: 'yes'
AuthorizedKeysCommand: '/usr/bin/sss_ssh_authorizedkeys'
AuthorizedKeysCommandUser: 'nobody'
IgnoreRhosts: 'yes'
RhostsRSAAuthentication: 'no'
HostbasedAuthentication: 'no'

Loading…
Cancel
Save