ssh server immediately closing connection

Leroy Tennison leroy@datavoiceint.com
Wed Sep 2 19:49:26 GMT 2020


Attempting to connect using blah@1.2.3.4 (the user and IP address have been obfuscated), the first time I'm prompted to accept the host's fingerprint and, after I do, the connection is immediately closed.  Trying again I get an immediate "Connection closed by 1.2.3.4 port 22".  I have tried both 32-bit and 64-bit Cygwin (after removing what was previously installed).  I used ssh-host-config and ssh-user-config for setup, the lines in sshd_config which aren't commented out are:

StrictModes no
AuthorizedKeysFile      .ssh/authorized_keys
Subsystem       sftp    /usr/sbin/sftp-server

In troubleshooting I stopped the Cygwin sshd service, used "Run as Administrator" for a command prompt, then ran cygwin.bat and afterward ran: /usr/sbin/sshd -d -de -f /etc/sshd_config.  The result was "seteuid 1050745: Operation not permitted" right before the server shut down.

Searching the web indicated the problem might be that the service account didn't have "Act as part of the operating system" and "create a token object" privileges although the situation was different (I'm not consciously using LSA).  However, running the service as the local system account and a created user account with these privileges (and being a member of the Administrators group) produced the same result.

In the attached file I have replaced the real user ID with "blah" and part of the domain/host name with XYZQ using vi's search-and-replace.  No other changes were made.

Are there other troubleshooting steps I can take or a solution to this issue?  Thanks for your help.
Leroy Tennison
Network Information/Cyber Security Specialist
E: leroy@datavoiceint.com
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.
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cygcheck.out
Type: application/octet-stream
Size: 31949 bytes
Desc: cygcheck.out
URL: <https://cygwin.com/pipermail/cygwin/attachments/20200902/46d0478b/attachment-0001.obj>


More information about the Cygwin mailing list