ssh session hangs and then disconnects with "Exit status 66" right after accepting a password

Leon Khaimovich Leon.Khaimovich@riverbed.com
Thu Sep 24 23:40:00 GMT 2009


Hi, I have 1.5.25 version of Cygwin running on Vista SP1 in WinSrv2k8 domain. I've configured sshd and was connecting from other boxes with no problem. But it looks like when sshd runs as Windows service, there are problems with access to the console GUI. In the past I was able to work around them by starting sshd from a shortcut in the startup folder. Yet now the connection hangs and then disconnects with "Exit status 66" right after accepting a password.

In other words, I see the following sequence of events:

1. Configure sshd to start automatically in Services.msc window;
2. Logon into Windows as domain admin;
3. Do "ssh -vvv localhost" from Cygwin Bash Shell;
//Connection is established (see the attached log in ssh_localhost_-vvv_started_as_service.log).
4. Use Services.msc window for stopping sshd;
5. Do "/usr/sbin/sshd -ddd" from Cygwin Bash Shell;
6. Open another Cygwin Bash Shell and do "ssh -vvv localhost" from it;
//sshd accepts password, hangs and then disconnects with "Exit status 66."  See ssh_localhost_-vvv_started_for_debug.log and sshd_-d.log for more details. The place where sshd hangs is marked with *********hangs for ~2min*********.
7. If one again starts sshd as a service, one can connect to localhost just fine again.

The logs don't show any errors or problems as afar as I can see. On the client side (ssh -vvv localhost), there is just a clean disconnect after the hang-exactly like one would get after logging out. On the server side (sshd -ddd), one can see a disconnect signal received from the client (SIGCHLD) and the subsequent normal closing of the connection. I couldn't find any online info about "Exit status 66." 

So my first question is: "What makes the client to disconnect?" And, second, can one do something allowing Outlook's GUI to open when starting it via Cygwin's ssh connection, when sshd is running as a service?

Cygchek.out is attached.
Thank you,
--Leon.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sshd_-d.log
Type: application/octet-stream
Size: 4483 bytes
Desc: sshd_-d.log
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090924/9a174066/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ssh_localhost_-vvv_started_as_service.log
Type: application/octet-stream
Size: 7174 bytes
Desc: ssh_localhost_-vvv_started_as_service.log
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090924/9a174066/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ssh_localhost_-vvv_started_for_debug.log
Type: application/octet-stream
Size: 9328 bytes
Desc: ssh_localhost_-vvv_started_for_debug.log
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090924/9a174066/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 12212 bytes
Desc: cygcheck.out
URL: <http://cygwin.com/pipermail/cygwin/attachments/20090924/9a174066/attachment-0003.obj>
-------------- next part --------------
--
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


More information about the Cygwin mailing list