Sunday, October 04, 2009

SSH Password prompt very slow when connect to server.

When I connect to the server I am waiting for password prompt around 15 seconds.

ssh -v 10.10.10.2

....
....
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
debug1: Next authentication method: gssapi-keyex
debug1: No valid Key exchange context
debug1: Next authentication method: gssapi-with-mic

debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information
No credentials cache found

debug1: Unspecified GSS failure. Minor code may provide more information


debug1: Next authentication method: publickey
debug1: Trying private key: /home/boonchai_noo/.ssh/identity
debug1: Trying private key: /home/boonchai_noo/.ssh/id_rsa
debug1: Trying private key: /home/boonchai_noo/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:

*** In the debug mode I found there are 3 times to try authentication method : GSSAPI so I man the ssh_config to look how to disable how to disable GSSAPI,
the option is GSSAPIAuthentication = no

I try to login againt with option
[tatshuya]# ssh -v -o GSSAPIAuthentication=no 10.1010.2

....
....
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: gssapi-keyex,gssapi-with-mic,publickey,password,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Trying private key: /home/boonchai_noo/.ssh/identity
debug1: Trying private key: /home/boonchai_noo/.ssh/id_rsa
debug1: Trying private key: /home/boonchai_noo/.ssh/id_dsa
debug1: Next authentication method: keyboard-interactive
Password:


**** there is no use the authentication method in debug mode and the time for display password prompt faster than before.

Thank you walker for this information.

-- TaTsHuYa --

No comments: