This is the mail archive of the
cygwin
mailing list for the Cygwin project.
ssh / sshd processes not exiting cleanly
- From: Cary Lewis <cary dot lewis at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Fri, 13 Feb 2015 14:19:59 -0500
- Subject: ssh / sshd processes not exiting cleanly
- Authentication-results: sourceware.org; auth=none
I am running cygwin 1.7.34 on a server 2008R2 machine.
I have installed sshd and it seems to run fine (I can log in), but
when I try to exit, the ssh session doesn't terminate. I can force it
to exit by hitting Enter~., but that leaves a defunct sshd.exe lying
around.
When I enter in exit from a ssh session (logging in locally
automatically), I see this in the sshd log (I enabled DEBUG2 and
syslog):
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug1: Received SIGCHLD.
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug1: session_by_pid: pid 4992
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug1:
session_exit_message: session 0 channel 0 pid 4992
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug2: channel 0:
request exit-status confirm 0
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug1:
session_exit_message: release channel 0
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug2: channel 0: write failed
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug2: channel 0: close_write
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug2: channel 0: send eow
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug2: channel 0: output
open -> closed
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug1:
session_pty_cleanup: session 0 release /dev/pty10
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug2: notify_done: reading
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug2: channel 0:
read<=0 rfd 8 len 0
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug2: channel 0: read failed
Feb 13 14:14:21 ENGAGEIP-PRD sshd: PID 7064: debug2: channel 0: close_read
I dont see anything else in the log when I force the exit of the ssh
session with the
~.
Can someone explain what is going on?
Here is part of the cygcheck -s:
Cygwin DLL version info:
DLL version: 1.7.34
DLL epoch: 19
DLL old termios: 5
DLL malloc env: 28
Cygwin conv: 181
API major: 0
API minor: 285
Shared data: 5
DLL identifier: cygwin1
Mount registry: 3
Cygwin registry name: Cygwin
Installations name: Installations
Cygdrive default prefix:
Build date:
Shared id: cygwin1S5
Service : sshd
Display name : CYGWIN sshd
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/sshd -D
openssh 6.7p1-2 OK
openssl 1.0.1k-1 OK
I don't see this behaviour on my Windows 7 machines/
Thanks.
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple