diff --git a/roles/ssh_hardening/templates/openssh.conf.j2 b/roles/ssh_hardening/templates/openssh.conf.j2 index afe589ee..a6e1a0f4 100644 --- a/roles/ssh_hardening/templates/openssh.conf.j2 +++ b/roles/ssh_hardening/templates/openssh.conf.j2 @@ -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 else 'no' }} +GSSAPIDelegateCredentials {{ 'yes' if ssh_gssapi_support else 'no' }} # Disable tunneling Tunnel no