I have the same problem with slow SSH connects to LAN IPs.
If
GSSAPIAuthentication yes
in my ssh/ssh_config there are three places where ssh waits for a long time:
<snip>
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2 Debian-8ubuntu1
debug1: match: OpenSSH_4.3p2 Debian-8ubuntu1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.3p2 Debian-8ubuntu1
debug2: fd 3 setting O_NONBLOCK
[...HERE...] <------------------------------- NOTICE!
debug1: Miscellaneous failure
No credentials cache found
[...HERE...] <------------------------------- NOTICE!
<snip>
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug2: key: /root/.ssh/identity ((nil))
debug2: key: /root/.ssh/id_rsa ((nil))
debug2: key: /root/.ssh/id_dsa ((nil))
[...AND HERE] <------------------------------- NOTICE!
When I change ssh_config to
GSSAPIAuthentication no
I get rid of the first two stops but the last one remains.
It even remains after modify nsswitch.conf as described above.
Any other ideas on how to get rid of the slow ssh connect?
I have the same problem with slow SSH connects to LAN IPs. tication yes
If
GSSAPIAuthen
in my ssh/ssh_config there are three places where ssh waits for a long time:
<snip> OpenSSH_ 4.3p2 Debian-8ubuntu1 ------- ------- ------- ---- NOTICE!
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.3p2 Debian-8ubuntu1
debug1: match: OpenSSH_4.3p2 Debian-8ubuntu1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-
debug2: fd 3 setting O_NONBLOCK
[...HERE...] <------
debug1: Miscellaneous failure ------- ------- ------- ---- NOTICE! SERVICE_ REQUEST sent SERVICE_ ACCEPT received ------- ------- ------- ---- NOTICE!
No credentials cache found
[...HERE...] <------
<snip>
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug2: set_newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_
debug2: key: /root/.ssh/identity ((nil))
debug2: key: /root/.ssh/id_rsa ((nil))
debug2: key: /root/.ssh/id_dsa ((nil))
[...AND HERE] <------
When I change ssh_config to tication no
GSSAPIAuthen
I get rid of the first two stops but the last one remains.
It even remains after modify nsswitch.conf as described above.
Any other ideas on how to get rid of the slow ssh connect?