Comments are available to members only. Sign up or Log in to view these comments.
Main Topics
Browse All TopicsHello,
While doing ssh from the putty or cygwin to freebsd box, it takes a lots of time to authenticate and get me a shell. I am not using the public-private key authentication. Please tell me what tweaking I have to do in sshd_config to get the faster connectivity.
here is the schenaraio
[START]
$ ssh -vv -l balbir 192.168.0.3
OpenSSH_5.1p1, OpenSSL 0.9.8h 28 May 2008
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.3 [192.168.0.3] port 22.
debug1: Connection established.
debug1: identity file /cygdrive/c/Documents and Settings/balbirs/.ssh/iden
ype -1
debug1: identity file /cygdrive/c/Documents and Settings/balbirs/.ssh/id_r
e -1
debug1: identity file /cygdrive/c/Documents and Settings/balbirs/.ssh/id_d
e -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_4.5p1 FreeB
SD-20061110
debug1: match: OpenSSH_4.5p1 FreeBSD-20061110 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.1
debug2: fd 3 setting O_NONBLOCK
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug2: kex_parse_kexinit: diffie-hellman-group-excha
roup-exchange-sha1,diffie-
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
28,arcfour256,arcfour,aes1
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
28,arcfour256,arcfour,aes1
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64
,hmac-ripemd160@openssh.co
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64
,hmac-ripemd160@openssh.co
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit: none,zlib@openssh.com,zlib
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: kex_parse_kexinit: diffie-hellman-group-excha
roup-exchange-sha1,diffie-
debug2: kex_parse_kexinit: ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
28,arcfour256,arcfour,aes1
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
28,arcfour256,arcfour,aes1
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
ssh.com,hmac-sha1-96,hmac-
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
ssh.com,hmac-sha1-96,hmac-
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit: none,zlib@openssh.com
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit:
debug2: kex_parse_kexinit: first_kex_follows 0
debug2: kex_parse_kexinit: reserved 0
debug2: mac_setup: found hmac-md5
debug1: kex: server->client aes128-cbc hmac-md5 none
debug2: mac_setup: found hmac-md5
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUES
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug2: dh_gen_key: priv key bits set: 125/256
debug2: bits set: 510/1024
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host '192.168.0.3' is known and matches the DSA host key.
debug1: Found key in /cygdrive/c/Documents and Settings/balbirs/.ssh/know
:1
debug2: bits set: 482/1024
debug1: ssh_dss_verify: signature correct
debug2: kex_derive_keys
debug2: set_newkeys: mode 1
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: /cygdrive/c/Documents and Settings/balbirs/.ssh/iden
debug2: key: /cygdrive/c/Documents and Settings/balbirs/.ssh/id_r
debug2: key: /cygdrive/c/Documents and Settings/balbirs/.ssh/id_d
======
[wait for 15 seconds around]
======
debug1: Authentications that can continue: publickey,keyboard-interac
debug1: Next authentication method: publickey
debug1: Trying private key: /cygdrive/c/Documents and Settings/balbirs/.ssh/iden
tity
debug1: Trying private key: /cygdrive/c/Documents and Settings/balbirs/.ssh/id_r
sa
debug1: Trying private key: /cygdrive/c/Documents and Settings/balbirs/.ssh/id_d
sa
debug2: we did not send a packet, disable method
debug1: Next authentication method: keyboard-interactive
debug2: userauth_kbdint
debug2: we sent a keyboard-interactive packet, wait for reply
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 1
Password:
========
[Enterered password, now it waits for another 10 seconds]
========
debug2: input_userauth_info_req
debug2: input_userauth_info_req: num_prompts 0
debug1: Authentication succeeded (keyboard-interactive).
debug1: channel 0: new [client-session]
debug2: channel 0: send open
debug1: Requesting no-more-sessions@openssh.c
debug1: Entering interactive session.
debug2: callback start
debug2: client_session2_setup: id 0
debug2: channel 0: request pty-req confirm 1
debug2: channel 0: request shell confirm 1
debug2: fd 3 setting TCP_NODELAY
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel_input_confirm: type 99 id 0
debug2: PTY allocation request accepted on channel 0
debug2: channel 0: rcvd adjust 131072
debug2: channel_input_confirm: type 99 id 0
debug2: shell request accepted on channel 0
Last login: Sun Aug 10 12:14:33 2008 from 192.168.0.2
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 7.0-RELEASE (GENERIC) #0: Sun Feb 24 19:59:52 UTC 2008
Welcome to FreeBSD!
[END]
Can some one tell me what I need to configure to get the quickest reply ?
Thank you,
Balbir
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: mr_egyptianPosted on 2008-08-13 at 13:36:26ID: 22225387
Comments are available to members only. Sign up or Log in to view these comments.