SSH hang up.

Dear SSH experts,

I was working for troubleshooting SSH for the whole afternoon. I have no idea what's wrong with my configuration.

Whatever you input password or not,your login window hung up.

Please refer to the following debug log:

root@walden # /usr/lib/ssh/sshd -ddd

debug1: sshd version Sun_SSH_1.1

debug3: Not a RSA1 key file /etc/ssh/ssh_host_rsa_key.

debug1: read PEM private key done: type RSA

debug1: private host key: #0 type 1 RSA

debug1: Bind to port 22 on 0.0.0.0.

Server listening on 0.0.0.0 port 22.

debug1: Server will not fork when running in debugging mode.

Connection from 147.132.179.12 port 63360

debug1: Client protocol version 2.0; client software version OpenSSH_3.8.1p1

debug1: match: OpenSSH_3.8.1p1 pat OpenSSH_3.6*,OpenSSH_3.7*,OpenSSH_3.8*

debug1: Enabling compatibility mode for protocol 2.0

debug1: Local version string SSH-2.0-Sun_SSH_1.1

debug1: list_hostkey_types: ssh-rsa

debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro

up1-sha1

debug2: kex_parse_kexinit: ssh-rsa

debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc

debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc

debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96

debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96

debug2: kex_parse_kexinit: none,zlib

debug2: kex_parse_kexinit: none,zlib

debug2: kex_parse_kexinit: ar-EG,ar-SA,cs-CZ,de,de-DE,en-US,es,es-ES,fi-FI,fr,fr

-BE,fr-FR,he-IL,hi-IN,hu-HU,it,it-IT,ja-JP,ko,ko-KR,pl,pl-PL,pt-BR,ru,ru-RU,sv, s

v-SE,th-TH,tr-TR,zh,zh-CN,zh-HK,zh-TW,ar,bg-BG,ca,ca-ES,cz,da,da-DK,de-AT,de-CH ,

el,el-GR,en-AU,en-CA,en-GB,en-IE,en-NZ,es-AR,es-BO,es-CL,es-CO,es-CR,es-EC,es-G T

,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et,et-EE,fi,fr-CA,fr-CH,he,hr- H

R,hu,is-IS,ja,lt,lt-LT,lv,lv-LV,mk-MK,nl,nl-BE,nl-NL,no,no-NO,no-NY,nr,pt,pt-PT ,

ro-RO,sh-BA,sk-SK,sl-SI,sq-AL,sr-SP,sr-YU,th,tr,i-default

debug2: kex_parse_kexinit: ar-EG,ar-SA,cs-CZ,de,de-DE,en-US,es,es-ES,fi-FI,fr,fr

-BE,fr-FR,he-IL,hi-IN,hu-HU,it,it-IT,ja-JP,ko,ko-KR,pl,pl-PL,pt-BR,ru,ru-RU,sv, s

v-SE,th-TH,tr-TR,zh,zh-CN,zh-HK,zh-TW,ar,bg-BG,ca,ca-ES,cz,da,da-DK,de-AT,de-CH ,

el,el-GR,en-AU,en-CA,en-GB,en-IE,en-NZ,es-AR,es-BO,es-CL,es-CO,es-CR,es-EC,es-G T

,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et,et-EE,fi,fr-CA,fr-CH,he,hr- H

R,hu,is-IS,ja,lt,lt-LT,lv,lv-LV,mk-MK,nl,nl-BE,nl-NL,no,no-NO,no-NY,nr,pt,pt-PT ,

ro-RO,sh-BA,sk-SK,sl-SI,sq-AL,sr-SP,sr-YU,th,tr,i-default

debug2: kex_parse_kexinit: first_kex_follows 0

debug2: kex_parse_kexinit: reserved 0

debug1: Failed to acquire GSS-API credentials for any mechanisms (No credentials

were supplied, or the credentials were unavailable or inaccessible

Unknown code 0

)

debug1: SSH2_MSG_KEXINIT sent

debug3: kex_reset_dispatch -- should we dispatch_set(KEXINIT) here? 0 && !0

debug1: SSH2_MSG_KEXINIT received

debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro

up1-sha1

debug2: kex_parse_kexinit: ssh-rsa

debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc

debug2: kex_parse_kexinit: aes128-ctr,aes128-cbc,arcfour,3des-cbc,blowfish-cbc

debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96

debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-sha1-96,hmac-md5-96

debug2: kex_parse_kexinit: none,zlib

debug2: kex_parse_kexinit: none,zlib

debug2: kex_parse_kexinit: ar-EG,ar-SA,cs-CZ,de,de-DE,en-US,es,es-ES,fi-FI,fr,fr

-BE,fr-FR,he-IL,hi-IN,hu-HU,it,it-IT,ja-JP,ko,ko-KR,pl,pl-PL,pt-BR,ru,ru-RU,sv, s

v-SE,th-TH,tr-TR,zh,zh-CN,zh-HK,zh-TW,ar,bg-BG,ca,ca-ES,cz,da,da-DK,de-AT,de-CH ,

el,el-GR,en-AU,en-CA,en-GB,en-IE,en-NZ,es-AR,es-BO,es-CL,es-CO,es-CR,es-EC,es-G T

,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et,et-EE,fi,fr-CA,fr-CH,he,hr- H

R,hu,is-IS,ja,lt,lt-LT,lv,lv-LV,mk-MK,nl,nl-BE,nl-NL,no,no-NO,no-NY,nr,pt,pt-PT ,

ro-RO,sh-BA,sk-SK,sl-SI,sq-AL,sr-SP,sr-YU,th,tr,i-default

debug2: kex_parse_kexinit: ar-EG,ar-SA,cs-CZ,de,de-DE,en-US,es,es-ES,fi-FI,fr,fr

-BE,fr-FR,he-IL,hi-IN,hu-HU,it,it-IT,ja-JP,ko,ko-KR,pl,pl-PL,pt-BR,ru,ru-RU,sv, s

v-SE,th-TH,tr-TR,zh,zh-CN,zh-HK,zh-TW,ar,bg-BG,ca,ca-ES,cz,da,da-DK,de-AT,de-CH ,

el,el-GR,en-AU,en-CA,en-GB,en-IE,en-NZ,es-AR,es-BO,es-CL,es-CO,es-CR,es-EC,es-G T

,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et,et-EE,fi,fr-CA,fr-CH,he,hr- H

R,hu,is-IS,ja,lt,lt-LT,lv,lv-LV,mk-MK,nl,nl-BE,nl-NL,no,no-NO,no-NY,nr,pt,pt-PT ,

ro-RO,sh-BA,sk-SK,sl-SI,sq-AL,sr-SP,sr-YU,th,tr,i-default

debug2: kex_parse_kexinit: first_kex_follows 0

debug2: kex_parse_kexinit: reserved 0

debug2: kex_parse_kexinit: diffie-hellman-group-exchange-sha1,diffie-hellman-gro

up1-sha1

debug2: kex_parse_kexinit: ssh-rsa,ssh-dss

debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,

aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256- c

tr

debug2: kex_parse_kexinit: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,

aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se,aes128-ctr,aes192-ctr,aes256- c

tr

debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open

ssh.com,hmac-sha1-96,hmac-md5-96

debug2: kex_parse_kexinit: hmac-md5,hmac-sha1,hmac-ripemd160,hmac-ripemd160@open

ssh.com,hmac-sha1-96,hmac-md5-96

debug2: kex_parse_kexinit: none,zlib

debug2: kex_parse_kexinit: none,zlib

debug2: kex_parse_kexinit:

debug2: kex_parse_kexinit:

debug2: kex_parse_kexinit: first_kex_follows 0

debug2: kex_parse_kexinit: reserved 0

debug2: mac_init: found hmac-md5

debug1: kex: client->server aes128-cbc hmac-md5 none

debug2: mac_init: found hmac-md5

debug1: kex: server->client aes128-cbc hmac-md5 none

debug1: Peer sent proposed langtags, ctos:

debug1: Peer sent proposed langtags, stoc:

debug1: We proposed langtags, ctos: ar-EG,ar-SA,cs-CZ,de,de-DE,en-US,es,es-ES,fi

-FI,fr,fr-BE,fr-FR,he-IL,hi-IN,hu-HU,it,it-IT,ja-JP,ko,ko-KR,pl,pl-PL,pt-BR,ru, r

u-RU,sv,sv-SE,th-TH,tr-TR,zh,zh-CN,zh-HK,zh-TW,ar,bg-BG,ca,ca-ES,cz,da,da-DK,de -

AT,de-CH,el,el-GR,en-AU,en-CA,en-GB,en-IE,en-NZ,es-AR,es-BO,es-CL,es-CO,es-CR,e s

-EC,es-GT,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et,et-EE,fi,fr-CA,fr- C

H,he,hr-HR,hu,is-IS,ja,lt,lt-LT,lv,lv-LV,mk-MK,nl,nl-BE,nl-NL,no,no-NO,no-NY,nr ,

pt,pt-PT,ro-RO,sh-BA,sk-SK,sl-SI,sq-AL,sr-SP,sr-YU,th,tr,i-default

debug1: We proposed langtags, stoc: ar-EG,ar-SA,cs-CZ,de,de-DE,en-US,es,es-ES,fi

-FI,fr,fr-BE,fr-FR,he-IL,hi-IN,hu-HU,it,it-IT,ja-JP,ko,ko-KR,pl,pl-PL,pt-BR,ru, r

u-RU,sv,sv-SE,th-TH,tr-TR,zh,zh-CN,zh-HK,zh-TW,ar,bg-BG,ca,ca-ES,cz,da,da-DK,de -

AT,de-CH,el,el-GR,en-AU,en-CA,en-GB,en-IE,en-NZ,es-AR,es-BO,es-CL,es-CO,es-CR,e s

-EC,es-GT,es-MX,es-NI,es-PA,es-PE,es-PY,es-SV,es-UY,es-VE,et,et-EE,fi,fr-CA,fr- C

H,he,hr-HR,hu,is-IS,ja,lt,lt-LT,lv,lv-LV,mk-MK,nl,nl-BE,nl-NL,no,no-NO,no-NY,nr ,

pt,pt-PT,ro-RO,sh-BA,sk-SK,sl-SI,sq-AL,sr-SP,sr-YU,th,tr,i-default

debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received

debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent

debug1: dh_gen_key: priv key bits set: 142/256

debug1: bits set: 514/1024

debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT

debug1: bits set: 521/1024

debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent

debug2: kex_derive_keys

debug3: kex_reset_dispatch -- should we dispatch_set(KEXINIT) here? 0 && !0

debug1: newkeys: mode 1

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: newkeys: mode 0

debug1: SSH2_MSG_NEWKEYS received

debug1: KEX done

debug1: userauth-request for user pwdadm service ssh-connection method none

debug1: attempt 0 initial attempt 0 failures 0 initial failures 0

debug2: input_userauth_request: setting up authctxt for pwdadm

debug2: input_userauth_request: try method none

debug2: Starting PAM service sshd-none for method none

debug3: Trying to reverse map address 147.132.179.12.

Failed none for pwdadm from 147.132.179.12 port 63360 ssh2

debug1: userauth-request for user pwdadm service ssh-connection method hostbased

debug1: attempt 1 initial attempt 0 failures 1 initial failures 0

debug2: input_userauth_request: try method hostbased

debug1: userauth_hostbased: cuser root chost banquo. pkalg ssh-dss slen 55

debug2: userauth_hostbased: chost banquo. resolvedname banquo ipaddr 147.132.179

.12

debug2: stripping trailing dot from chost banquo.

debug2: auth_rhosts2: clientuser root hostname banquo ipaddr 147.132.179.12

debug1: temporarily_use_uid: 1111/100 (e=0/1)

debug1: restore_uid: 0/1

debug1: temporarily_use_uid: 1111/100 (e=0/1)

debug1: restore_uid: 0/1

debug2: userauth_hostbased: access allowed by auth_rhosts2

debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts

debug1: temporarily_use_uid: 1111/100 (e=0/1)

debug3: check_host_in_hostfile: filename /home/pwdadm/.ssh/known_hosts

debug1: restore_uid: 0/1

debug2: check_key_in_hostfiles: key not found for banquo

debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts2

debug1: temporarily_use_uid: 1111/100 (e=0/1)

debug3: check_host_in_hostfile: filename /home/pwdadm/.ssh/known_hosts2

debug1: restore_uid: 0/1

debug2: check_key_in_hostfiles: key not found for banquo

debug2: userauth_hostbased: authenticated 0

Failed hostbased for pwdadm from 147.132.179.12 port 63360 ssh2

debug1: userauth-request for user pwdadm service ssh-connection method hostbased

debug1: attempt 2 initial attempt 0 failures 2 initial failures 0

debug2: input_userauth_request: try method hostbased

debug1: userauth_hostbased: cuser root chost banquo. pkalg ssh-rsa slen 143

debug2: userauth_hostbased: chost banquo. resolvedname banquo ipaddr 147.132.179

.12

debug2: stripping trailing dot from chost banquo.

debug2: auth_rhosts2: clientuser root hostname banquo ipaddr 147.132.179.12

debug1: temporarily_use_uid: 1111/100 (e=0/1)

debug1: restore_uid: 0/1

debug1: temporarily_use_uid: 1111/100 (e=0/1)

debug1: restore_uid: 0/1

debug2: userauth_hostbased: access allowed by auth_rhosts2

debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts

debug1: temporarily_use_uid: 1111/100 (e=0/1)

debug3: check_host_in_hostfile: filename /home/pwdadm/.ssh/known_hosts

debug1: restore_uid: 0/1

debug2: check_key_in_hostfiles: key not found for banquo

debug3: check_host_in_hostfile: filename /etc/ssh/ssh_known_hosts2

debug1: temporarily_use_uid: 1111/100 (e=0/1)

debug3: check_host_in_hostfile: filename /home/pwdadm/.ssh/known_hosts2

debug1: restore_uid: 0/1

debug2: check_key_in_hostfiles: key not found for banquo

debug2: userauth_hostbased: authenticated 0

Failed hostbased for pwdadm from 147.132.179.12 port 63360 ssh2

debug1: userauth-request for user pwdadm service ssh-connection method keyboard-

interactive

debug1: attempt 3 initial attempt 0 failures 3 initial failures 0

debug2: input_userauth_request: try method keyboard-interactive

debug1: keyboard-interactive devs

Failed keyboard-interactive for pwdadm from 147.132.179.12 port 63360 ssh2

debug1: userauth-request for user pwdadm service ssh-connection method password

debug1: attempt 4 initial attempt 1 failures 4 initial failures 1

debug2: input_userauth_request: try method password

debug2: Starting PAM service sshd-password for method password

Accepted password for pwdadm from 147.132.179.12 port 63360 ssh2

debug2: Monitor pid 1452, unprivileged child pid 1455

debug2: Monitor started

monitor debug3: Recording SSHv2 session login in wtmpx

monitor debug3: not writing utmpx entry

debug2: Waiting for monitor

debug2: Monitor signalled readiness

debug3: Setting handler to forward re-key packets to monitor

debug2: Unprivileged server process dropping privileges

debug1: permanently_set_uid: 1111/100

monitor debug1: Entering monitor loop.

debug1: Entering interactive session for SSH2.

monitor debug1: fd 4 setting O_NONBLOCK

monitor debug1: fd 10 setting O_NONBLOCK

debug1: fd 7 setting O_NONBLOCK

debug1: fd 9 setting O_NONBLOCK

debug1: server_init_dispatch_20

debug3: server_init_dispatch_20 -- should we dispatch_set(KEXINIT) here? 1 && !0

debug3: server_init_dispatch_20 -- skipping dispatch_set(KEXINIT) in unpriv proc

debug1: server_input_channel_open: ctype session rchan 0 win 65536 max 16384

debug1: input_session_request

debug1: channel 0: new [server-session]

debug1: session_new: init

debug1: session_new: session 0

debug1: session_open: channel 0

debug1: session_open: session 0: link with channel 0

debug1: server_input_channel_open: confirm session

debug1: server_input_channel_req: channel 0 request pty-req reply 0

debug1: session_by_channel: session 0 channel 0

debug1: session_input_channel_req: session 0 req pty-req

debug1: Allocating pty.

debug1: session_pty_req: session 0 alloc /dev/pts/3

debug3: tty_parse_modes: SSH2 n_bytes 266

debug3: tty_parse_modes: ospeed 38400

debug3: tty_parse_modes: ispeed 0

debug3: tty_parse_modes: 1 3

debug3: tty_parse_modes: 2 28

debug3: tty_parse_modes: 3 127

debug3: tty_parse_modes: 4 21

debug3: tty_parse_modes: 5 4

debug3: tty_parse_modes: 6 0

debug3: tty_parse_modes: 7 0

debug3: tty_parse_modes: 8 17

debug3: tty_parse_modes: 9 19

debug3: tty_parse_modes: 10 26

debug3: tty_parse_modes: 11 25

debug3: tty_parse_modes: 12 18

debug3: tty_parse_modes: 13 23

debug3: tty_parse_modes: 14 22

debug3: tty_parse_modes: 16 0

debug3: tty_parse_modes: 18 15

debug3: tty_parse_modes: 30 1

debug3: tty_parse_modes: 31 0

debug3: tty_parse_modes: 32 0

debug3: tty_parse_modes: 33 0

debug3: tty_parse_modes: 34 0

debug3: tty_parse_modes: 35 0

debug3: tty_parse_modes: 36 1

debug3: tty_parse_modes: 37 0

debug3: tty_parse_modes: 38 1

debug3: tty_parse_modes: 39 0

debug3: tty_parse_modes: 40 0

debug3: tty_parse_modes: 41 1

debug3: tty_parse_modes: 50 1

debug3: tty_parse_modes: 51 1

debug3: tty_parse_modes: 52 0

debug3: tty_parse_modes: 53 1

debug3: tty_parse_modes: 54 1

debug3: tty_parse_modes: 55 1

debug3: tty_parse_modes: 56 0

debug3: tty_parse_modes: 57 0

debug3: tty_parse_modes: 58 0

debug3: tty_parse_modes: 59 1

debug3: tty_parse_modes: 60 1

debug3: tty_parse_modes: 61 1

debug3: tty_parse_modes: 62 0

debug3: tty_parse_modes: 70 1

debug3: tty_parse_modes: 71 0

debug3: tty_parse_modes: 72 1

debug3: tty_parse_modes: 73 0

debug3: tty_parse_modes: 74 0

debug3: tty_parse_modes: 75 0

debug3: tty_parse_modes: 90 1

debug3: tty_parse_modes: 91 1

debug3: tty_parse_modes: 92 0

debug3: tty_parse_modes: 93 0

debug1: server_input_channel_req: channel 0 request shell reply 0

debug1: session_by_channel: session 0 channel 0

debug1: session_input_channel_req: session 0 req shell

monitor debug3: writing utmpx entry

Any idea?

Jeff

[16158 byte] By [Jeff_C] at [2007-11-26 9:46:59]
# 1
could you resolve the issue?
asreenu at 2007-7-7 0:52:49 > top of Java-index,General,Sun Alert and Security Discussion...
# 2
I have the same problem - did you manage to solve it?Paul
PiffPaffcio at 2007-7-7 0:52:49 > top of Java-index,General,Sun Alert and Security Discussion...