Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: SSH Hangs on exit

From: Adam Jurevicius <ajurevicius(at)FinancialEngines.com>
Date: Tue Nov 26 2002 - 11:56:09 EST

Sorry about that. Here's the file contents. Any help would be great.

http://marc.theaimsgroup.com/?l=openssh-unix-dev&m=102863079720412&w=2

Problem Description:
Every time i login to a remote server via ssh and start a job in the background, my session hangs hangs on exit. From what i can find in the newgroups this mysterious "hang" bug seems to come and go. Has anyone else seen this bug?

Client System Config:

-RH Linux 7.2
-OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090602f

Server System Config:

-Sun Sparc Solaris 8 with kernel patch -15 & Redhat Linux 7.3 / kernel - 2.4.18-18.7.xsmp
-OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090603f

Do you need help?X

Server Debug output:
# /opt/ssh/sbin/sshd -d6

debug1: sshd version OpenSSH_3.4p1
debug1: private host key: #0 type 0 RSA1
debug1: read PEM private key done: type RSA
debug1: private host key: #1 type 1 RSA
debug1: read PEM private key done: type DSA
debug1: private host key: #2 type 2 DSA
debug1: Bind to port 22 on ::.

Server listening on :: port 22.
debug1: Server will not fork when running in debugging mode. Connection from ::ffff:<client IP> port 53168 debug1: Client protocol version 2.0; client software version OpenSSH_3.4p1 debug1: match: OpenSSH_3.4p1 pat OpenSSH* Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.4p1
debug1: list_hostkey_types: ssh-rsa,ssh-dss
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST received
debug1: SSH2_MSG_KEX_DH_GEX_GROUP sent
debug1: dh_gen_key: priv key bits set: 126/256
debug1: bits set: 1578/3191
debug1: expecting SSH2_MSG_KEX_DH_GEX_INIT
debug1: bits set: 1564/3191
debug1: SSH2_MSG_KEX_DH_GEX_REPLY sent
debug1: kex_derive_keys
debug1: newkeys: mode 1
debug1: SSH2_MSG_NEWKEYS sent
debug1: waiting for SSH2_MSG_NEWKEYS
debug1: newkeys: mode 0
debug1: SSH2_MSG_NEWKEYS received
debug1: KEX done
debug1: userauth-request for user adamj service ssh-connection method none
debug1: attempt 0 failures 0
debug1: Starting up PAM with username "adamj"
debug1: PAM setting rhost to ""
Failed none for adamj from ::ffff:<client IP> port 53168 ssh2 Failed none for adamj from ::ffff:<client IP> port 53168 ssh2
debug1: userauth-request for user adamj service ssh-connection method publickey
debug1: attempt 1 failures 1
debug1: test whether pkalg/pkblob are acceptable
debug1: temporarily_use_uid: 7703/10 (e=0)
debug1: trying public key file /usa/adamj/.ssh/authorized_keys
debug1: matching key found: file /usa/adamj/.ssh/authorized_keys, line 1
Found matching RSA key: <key>
debug1: restore_uid
Postponed publickey for adamj from ::ffff:<client IP> port 53168 ssh2
debug1: userauth-request for user adamj service ssh-connection method publickey
debug1: attempt 2 failures 1
debug1: temporarily_use_uid: 7703/10 (e=0)
debug1: trying public key file /usa/adamj/.ssh/authorized_keys
debug1: matching key found: file /usa/adamj/.ssh/authorized_keys, line 1
Do you need more help?X
Found matching RSA key: <key>
debug1: restore_uid
debug1: ssh_rsa_verify: signature correct Accepted publickey for adamj from ::ffff:<client IP> port 53168 ssh2 debug1: monitor_child_preauth: adamj has been authenticated by privileged process Accepted publickey for adamj from ::ffff:<client IP> port 53168 ssh2
debug1: PAM establishing creds
debug1: newkeys: mode 0
debug1: newkeys: mode 1
debug1: Entering interactive session for SSH2.
debug1: fd 3 setting O_NONBLOCK
debug1: fd 7 setting O_NONBLOCK
debug1: server_init_dispatch_20
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: lastlog_openseek: Couldn't open /var/adm/lastlog: Permission denied
debug1: Allocating pty.
debug1: session_new: init
debug1: session_new: session 0
debug1: session_pty_req: session 0 alloc /dev/pts/1
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
debug1: PAM setting tty to "/dev/pts/1"
debug1: PAM establishing creds
debug1: fd 4 setting TCP_NODELAY
debug1: fd 10 setting O_NONBLOCK
debug1: Received SIGCHLD.
debug1: session_by_pid: pid 24232
debug1: session_exit_message: session 0 channel 0 pid 24232
debug1: channel request 0: exit-status
debug1: session_exit_message: release channel 0
debug1: channel 0: write failed
debug1: channel 0: close_write
debug1: channel 0: output open -> closed
debug1: session_close: session 0 pid 24232
debug1: session_by_tty: session 0 tty /dev/pts/1
debug1: session_pty_cleanup: session 0 release /dev/pts/1
Can we help you?X

On Tue, 26 Nov 2002, Wiese, Maria wrote:

> I have the same problem. I can't open you attachment.
>
> -----Original Message-----
> From: Adam Jurevicius [mailto:adamj@financialengines.com]
> Sent: Monday, November 25, 2002 8:06 PM
> To: secureshell@securityfocus.com
> Subject: SSH Hangs on exit
>
>
> Hello all,

-- 
Adam B. Jurevicius
Unix Administrator
adamj@financialengines.com
650-565-7703 (w)
Received on Wed Nov 27 12:06:40 2002

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:51 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library