I subscribed to this list two days ago, didn't get any response. I posted a
message titled "ssh server immediately closing connection" on Sep 2 19:49:26
GMT 2020 which received questions as a response but I never got an email so I'm
having to reply with a new post - I'm sorry, I don't know what else to do. If
I need to re-submit a subscription request please let me know.
I was asked:
1) Please detail the windows service configuration.
$ cygrunsrv -V -Q cygsshd
Service : cygsshd
Display name : CYGWIN cygsshd
Current State : Running
Controls Accepted : Stop
Command : /usr/sbin/sshd -D
stdin path : /dev/null
stdout path : /var/log/cygsshd.log
stderr path : /var/log/cygsshd.log
Process Type : Own Process
Startup : Automatic
Dependencies : tcpip
Account : LocalSystem
Note: /var/log/cygsshd.log is zero length
C:\Windows\system32>sc qc cygsshd
[SC] QueryServiceConfig SUCCESS
SERVICE_NAME: cygsshd
TYPE : 10 WIN32_OWN_PROCESS
START_TYPE : 2 AUTO_START
ERROR_CONTROL : 1 NORMAL
BINARY_PATH_NAME : D:\cygwin\bin\cygrunsrv.exe
LOAD_ORDER_GROUP :
TAG : 0
DISPLAY_NAME : CYGWIN cygsshd
DEPENDENCIES : tcpip
SERVICE_START_NAME : LocalSystem
2) I see that you are running as cyg_server account. Please try as SYSTEM.
I got the same result running as system (note LocalSystem above)
3) Please confirm the issue is the same in the windows event log
Checking the log for a service with both a Local System and cyg_server, the
entries were identical in detail (abbreviated)
The description for Event ID 0 from source sshd cannot be found.
Running as LocalSystem:
[ UserID] S-1-5-18
sshd: PID 3103: fatal: seteuid 1050745: No such device or address
Running as cyg_server:
[ UserID] S-1-5-21-286763150-81293845-2154422431-1017
sshd: PID 3122: fatal: seteuid 1050745: No such device or address
I even tried running in "single instance mode" (or whatever it's called when
you run sshd directly from the terminal as I did previously) and launched
strace in an administrative command prompt (after determining the Windows pid
with ps -W). The result was a few zero return codes.
Leroy Tennison
Network Information/Cyber Security Specialist
E: [email protected]
2220 Bush Dr
McKinney, Texas
75070
www.datavoiceint.com
This message has been sent on behalf of a company that is part of the Harris
Operating Group of Constellation Software Inc.If you prefer not to be contacted
by Harris Operating Group please notify us.
This message is intended exclusively for the individual or entity to which it
is addressed. This communication may contain information that is proprietary,
privileged or
confidential or otherwise legally exempt from disclosure. If you are not the
named addressee, you are not authorized to read, print, retain, copy or
disseminate this message or any part of it. If you have received this message
in error, please notify the sender immediately by e-mail and delete all copies
of the message.
--
Problem reports: https://cygwin.com/problems.html
FAQ: https://cygwin.com/faq/
Documentation: https://cygwin.com/docs.html
Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple