SSH establishment takes a long time, with ssh -v
result:
debug1: Next authentication method: gssapi-with-mic
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available
debug1: Unspecified GSS failure. Minor code may provide more information
debug1: Unspecified GSS failure. Minor code may provide more information
No Kerberos credentials available
Set GSSAPIAuthentication
to yes
Before:
...
# GSSAPI options
GSSAPIAuthentication yes
...
After:
...
# GSSAPI options
GSSAPIAuthentication no
...
Then restart SSHD by
service sshd restart
The SSH connection establishment is faster, but now hanging around 10 seconds on debug1: SSH2_MSG_SERVICE_ACCEPT received
Hanging around ~10 seconds on:
debug1: SSH2_MSG_SERVICE_ACCEPT received
Change UseDNS
to no.
Then restart SSHD by
service sshd restart
Now SSH connection is fast.