GSSAPI or Generic Security Service Application Programming Interface allows login to an SSH server via alternative mechanisms such as Kerberos.
It's useful for those who need the feature, but it's enabled by default and could unnecessarily slow the overall login process if you only use the standard password or public-key authentication methods.
You can disable or enable GSSAPI authentication for SSH via GSSAPIAuthentication directive in your SSHd configuration.
Specifies whether user authentication based on GSSAPI is allowed. The default is no.
Related: How to accelerate SSH authentication
Steps to disable or enable GSSAPI authentication in SSH:
- Launch your preferred terminal application (optional).
- Open SSHd configuration file using your favorite text editor.
$ sudo vi /etc/ssh/sshd_config [sudo] password for user:
- Search for GSSAPIAuthentication directive and set the value to no to disable GSSAPIAuthentication authentication method or yes to enable.
Add the line if it doesn't already exist and remove # at the beginning of the line if it exists.
- Save and exit the text editor.
- Reload or restart SSH server service.
$ sudo systemctl restart sshd
Comment anonymously. Login not required.