Merge pull request #72 from kyrias/AuthKeysCmd
Add AuthorizedKeysCommand support
This commit is contained in:
commit
8d1e730907
@ -81,6 +81,8 @@
|
|||||||
{{ option_default_uncommented('RSAAuthentication', 'yes') }}
|
{{ option_default_uncommented('RSAAuthentication', 'yes') }}
|
||||||
{{ option_default_uncommented('PubkeyAuthentication', 'yes') }}
|
{{ option_default_uncommented('PubkeyAuthentication', 'yes') }}
|
||||||
{{ option('AuthorizedKeysFile', '%h/.ssh/authorized_keys') }}
|
{{ option('AuthorizedKeysFile', '%h/.ssh/authorized_keys') }}
|
||||||
|
{{ option('AuthorizedKeysCommand', 'none') }}
|
||||||
|
{{ option('AuthorizedKeysCommandUser', 'nobody') }}
|
||||||
|
|
||||||
# Don't read the user's ~/.rhosts and ~/.shosts files
|
# Don't read the user's ~/.rhosts and ~/.shosts files
|
||||||
{{ option_default_uncommented('IgnoreRhosts', 'yes') }}
|
{{ option_default_uncommented('IgnoreRhosts', 'yes') }}
|
||||||
|
@ -21,6 +21,8 @@ sshd_config:
|
|||||||
MaxSessions: 10
|
MaxSessions: 10
|
||||||
RSAAuthentication: 'yes'
|
RSAAuthentication: 'yes'
|
||||||
PubkeyAuthentication: 'yes'
|
PubkeyAuthentication: 'yes'
|
||||||
|
AuthorizedKeysCommand: '/usr/bin/sss_ssh_authorizedkeys'
|
||||||
|
AuthorizedKeysCommandUser: 'nobody'
|
||||||
IgnoreRhosts: 'yes'
|
IgnoreRhosts: 'yes'
|
||||||
RhostsRSAAuthentication: 'no'
|
RhostsRSAAuthentication: 'no'
|
||||||
HostbasedAuthentication: 'no'
|
HostbasedAuthentication: 'no'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user