mirror of
https://github.com/saltstack-formulas/openssh-formula.git
synced 2025-04-20 00:22:07 +02:00
Merge 5f60a60e738eaf6208a35df81fbc9e5cbf1d1e29 into c71f2ae4fa1f01ca59d1a54d2a5259d9c2405b1e
This commit is contained in:
commit
76c8e98d93
@ -128,8 +128,14 @@
|
||||
{{ option_default_uncommented('RSAAuthentication', 'yes') }}
|
||||
{{ option_default_uncommented('PubkeyAuthentication', 'yes') }}
|
||||
{{ option('AuthorizedKeysFile', '%h/.ssh/authorized_keys') }}
|
||||
{{ option('AuthorizedKeysCommand', 'none') }}
|
||||
{{ option('AuthorizedKeysCommandUser', 'nobody') }}
|
||||
{%- if server.authorized_keys_command is defined %}
|
||||
AuthorizedKeysCommand {{ server.authorized_keys_command.command }}
|
||||
{% if grains['os_family'] == 'RedHat' %}
|
||||
{% if grains['osmajorrelease'] != '6' %}
|
||||
AuthorizedKeysCommandUser {{ server.authorized_keys_command.get('user', 'nobody') }}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
{%- endif %}
|
||||
|
||||
# Don't read the user's ~/.rhosts and ~/.shosts files
|
||||
{{ option_default_uncommented('IgnoreRhosts', 'yes') }}
|
||||
|
@ -26,8 +26,9 @@ sshd_config:
|
||||
MaxSessions: 10
|
||||
RSAAuthentication: 'yes'
|
||||
PubkeyAuthentication: 'yes'
|
||||
AuthorizedKeysCommand: '/usr/bin/sss_ssh_authorizedkeys'
|
||||
AuthorizedKeysCommandUser: 'nobody'
|
||||
AuthorizedKeysCommand:
|
||||
- Command: '/usr/bin/sss_ssh_authorizedkeys'
|
||||
- User: 'nobody'
|
||||
IgnoreRhosts: 'yes'
|
||||
RhostsRSAAuthentication: 'no'
|
||||
HostbasedAuthentication: 'no'
|
||||
|
Loading…
x
Reference in New Issue
Block a user