Hello,
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
tity t
ype -1
debug1: identity file /cygdrive/c/Documents and Settings/balbirs/.ssh/id_r
sa typ
e -1
debug1: identity file /cygdrive/c/Documents and Settings/balbirs/.ssh/id_d
sa typ
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
nge-sha256
,diffie-he
llman-g
roup-exchange-sha1,diffie-
hellman-gr
oup14-sha1
,diffie-he
llman-grou
p1-sha1
debug2: kex_parse_kexinit: ssh-rsa,ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
sh-cbc,cas
t128-cbc,a
rcfour1
28,arcfour256,arcfour,aes1
92-cbc,aes
256-cbc,ri
jndael-cbc
@lysator.l
iu.se,aes1
28-c
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
sh-cbc,cas
t128-cbc,a
rcfour1
28,arcfour256,arcfour,aes1
92-cbc,aes
256-cbc,ri
jndael-cbc
@lysator.l
iu.se,aes1
28-c
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64
@openssh.c
om,hmac-ri
pemd160
,hmac-ripemd160@openssh.co
m,hmac-sha
1-96,hmac-
md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,umac-64
@openssh.c
om,hmac-ri
pemd160
,hmac-ripemd160@openssh.co
m,hmac-sha
1-96,hmac-
md5-96
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
nge-sha256
,diffie-he
llman-g
roup-exchange-sha1,diffie-
hellman-gr
oup14-sha1
,diffie-he
llman-grou
p1-sha1
debug2: kex_parse_kexinit: ssh-dss
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
sh-cbc,cas
t128-cbc,a
rcfour1
28,arcfour256,arcfour,aes1
92-cbc,aes
256-cbc,ri
jndael-cbc
@lysator.l
iu.se,aes1
28-c
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfi
sh-cbc,cas
t128-cbc,a
rcfour1
28,arcfour256,arcfour,aes1
92-cbc,aes
256-cbc,ri
jndael-cbc
@lysator.l
iu.se,aes1
28-c
tr,aes192-ctr,aes256-ctr
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
pemd160,hm
ac-ripemd1
60@open
ssh.com,hmac-sha1-96,hmac-
md5-96
debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ri
pemd160,hm
ac-ripemd1
60@open
ssh.com,hmac-sha1-96,hmac-
md5-96
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
T(1024<102
4<8192) sent
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
n_hosts
: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
tity (0x0)
debug2: key: /cygdrive/c/Documents and Settings/balbirs/.ssh/id_r
sa (0x0)
debug2: key: /cygdrive/c/Documents and Settings/balbirs/.ssh/id_d
sa (0x0)
======
[wait for 15 seconds around]
======
debug1: Authentications that can continue: publickey,keyboard-interac
tive
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
om
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
Start Free Trial