GSSAPI-based authentication allows OpenSSH servers to delegate user identity checks to external mechanisms such as Kerberos, integrating SSH logins with centralized single sign-on. In environments that depend on domain tickets and constrained delegation, enabling GSSAPI reduces password prompts and aligns SSH access with existing security policies.
During connection setup, the sshd daemon evaluates the GSSAPIAuthentication directive in /etc/ssh/sshd_config to decide whether to offer GSSAPI as a client method. When the option is enabled and a compatible client and key distribution center are available, SSH can complete logins using tickets instead of interactive credentials while still applying server-side access controls and authorized key checks where configured.
Leaving GSSAPI active on systems that do not use it can slow down logins due to DNS lookups, ticket acquisition attempts, or unreachable Kerberos infrastructure. Adjusting the GSSAPIAuthentication setting at the server level and validating the configuration before restarting sshd balances performance with the needs of any existing single sign-on deployment.
GSSAPIAuthentication
Specifies whether user authentication based on GSSAPI is allowed. The default is no.
$ whoami user
$ sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak-$(date +%Y%m%d%H%M%S)
Misconfigured /etc/ssh/sshd_config can block remote logins, so a backup allows quick rollback if sshd fails to restart.
$ sudo vi /etc/ssh/sshd_config
Any text editor such as nano, vim, or vi can modify the configuration file as long as the process runs with root or sudo privileges.
$ sudo grep -n -i gssapiauthentication /etc/ssh/sshd_config 80:#GSSAPIAuthentication no
GSSAPIAuthentication no
Add the line if missing and remove any leading # character so that OpenSSH does not treat it as a comment.
$ sudo sshd -t
No output indicates that sshd parsed /etc/ssh/sshd_config successfully.
Related: How to test SSH server configuration
$ sudo systemctl restart ssh
On some Linux distributions the service name is sshd instead of ssh, so use sudo systemctl restart sshd if the first command fails.
$ sudo sshd -T | grep -i gssapiauthentication gssapiauthentication no