Skip to content

Commit

Permalink
Merge pull request #403 from wzzrd/gssapi_client_support
Browse files Browse the repository at this point in the history
Extend GSSAPI configuration support to ssh_config
  • Loading branch information
schurzi committed Feb 15, 2021
2 parents 70cd7bb + 64713ce commit 5d55d29
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
5 changes: 4 additions & 1 deletion roles/ssh_hardening/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,10 @@ Warning: This role disables root-login on the target server! Please make sure yo
- Description: false to disable pam authentication.
- `ssh_gssapi_support`
- Default: `false`
- Description: true if SSH has GSSAPI support.
- Description: Set to true to enable GSSAPI authentication (both client and server).
- `ssh_gssapi_delegation`
- Default: `false`
- Description: Set to true to enable GSSAPI credential forwarding.
- `ssh_kerberos_support`
- Default: `true`
- Description: true if SSH has Kerberos support.
Expand Down
5 changes: 4 additions & 1 deletion roles/ssh_hardening/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,12 @@ ssh_use_pam: true # sshd
# specify AuthenticationMethods
sshd_authenticationmethods: 'publickey'

# true if SSH support GSSAPI
# Set to true to enable GSSAPI authentication (both client and server)
ssh_gssapi_support: false

# Set to true to enable GSSAPI credential forwarding
ssh_gssapi_delegation: false

# if specified, login is disallowed for user names that match one of the patterns.
ssh_deny_users: '' # sshd

Expand Down
4 changes: 2 additions & 2 deletions roles/ssh_hardening/templates/openssh.conf.j2
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ RSAAuthentication yes
PasswordAuthentication {{ 'yes' if ssh_client_password_login else 'no' }}

# Only use GSSAPIAuthentication if implemented on the network.
GSSAPIAuthentication no
GSSAPIDelegateCredentials no
GSSAPIAuthentication {{ 'yes' if (ssh_gssapi_support|bool) else 'no' }}
GSSAPIDelegateCredentials {{ 'yes' if (ssh_gssapi_delegation|bool) else 'no' }}

# Disable tunneling
Tunnel no
Expand Down

0 comments on commit 5d55d29

Please sign in to comment.