public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Dale Lobb <Dale.Lobb@bryanhealth.org>
To: 'Stephen Carrier' <carrier@berkeley.edu>,
	'Achim Gratz' <Stromeko@nexgo.de>
Cc: "'cygwin@cygwin.com'" <cygwin@cygwin.com>
Subject: RE: EXTERNAL SENDER: Re: Issue with seteuid and openssh
Date: Thu, 14 Jul 2022 01:47:04 +0000	[thread overview]
Message-ID: <ca6b1a16f76e4a9bb5f1817281424f4b@bryanhealth.org> (raw)
In-Reply-To: <20220526234307.GB13111@iguana.crashland.org>

[-- Attachment #1: Type: text/plain, Size: 4597 bytes --]

Greetings All,

  I got the chance to work on this issue some more today.  Unfortunately, none of the suggestions helped.  What I tried:

  1.  I verified that that the windows firewall is allowing port 22 inbound for the cygsshd service.  This has not changed since system inception last year.

  2.  I verified that the cygsshd service has a dependency on the tcpip service and I set cygsshd to delayed automatic start:  no change in behavior after reboot.

  3.  I installed the cygserver service and set it to delayed automatic start.  I changed the cygsshd service back to normal automatic start and added a dependency on the cygserver service: again, no change in behavior after reboot.

  I also verified that a windows console login will end the embargo on cygsshd after reboot, just as an RDP session will.

  Any other ideas?

Best Regards,

Dale Lobb


> -----Original Message-----
> From: Cygwin <cygwin-bounces+dale.lobb=bryanhealth.org@cygwin.com>
> On Behalf Of Stephen Carrier
> Sent: Thursday, May 26, 2022 6:43 PM
> To: Achim Gratz <Stromeko@nexgo.de>
> Cc: cygwin@cygwin.com
> Subject: EXTERNAL SENDER: Re: Issue with seteuid and openssh
>
> In the 2019 occurence of a similar problem, cygserver wasn't being used,
> so I would be interested and happy to hear if running it and waiting for it
> are enough to fix this.
>
> --Stephen
>
>
> On Wed, May 25, 2022 at 07:51:14PM +0200, Achim Gratz wrote:
>>Check the dependencies on both the cygserver and sshd service definitions.
>> You must start them after the network is up (make them both depend
>> on tcp_ip and sshd depend on cygserver) or they won't work correctly.
>>  On domain machines that sometimes still isn't quite enough, so I've set
>> them to "delayed start" in those instances and that seems to have fixed it.
>>
>>Also check that the firewall allows connections through whatever port you've
>> configured sshd to use.
>>
>>Regards,
>>Achim.
>>
>>Dale Lobb wrote on 5/24/2022:
>>>Greetings All,
>>>
>>>  Has anyone seen an issue similar to this?
>>>
>>>  I have a VMWare virtual machine loaded with Windows Server 2016 OS and
>>>a Cygwin installation.  Cygwin runs an installed SSHD service via
>>>cygrunsrv.exe.  A data gateway engine on a different machine makes regular
>>>programmatic connections via SFTP to the server throughout the day.  This
>>>setup was established in 2021 and has run without issue for almost a year.
>>>
>>>  Last night, the server rebooted automatically after windows updates.
>>>After the reboot, the data gateway was then no longer able to connect to
>>>the server.  This condition persisted until I was informed of the issue
>>>this morning and connected to the Windows server using RDP to take a look
>>>at the issue, at which point the SSH connection suddenly started working.
>>>Further tests showed this to be entirely repeatable.  After rebooting the
>>>server, the SSHD daemon does not allow connections, neither with password
>>>nor public key authorization, until someone connects to the server via RDP,
>>>at which time the SSH connections suddenly starts working again.
>>>
>>>  The server's Windows application event log shows numerous errors from
>>>the SSHD daemon stating "sshd: PID <####>: fatal: seteuid 197108: No such
>>>device or address" during the time frame when SSH connection were not
>>>working.  The errors stop immediately when the RDP connection is recorded
>>>in the same event log.
>>>
>>>  A google search for the error message turned up something somewhat
>>>similar from this mailing list back in March of 2019, but there is no
>>>mention of RDP in that exchange.  Also, the advice given, to convert the
>>>SSHD service from running under the cyg_server account to LocalSystem, does
>>>not apply here, because the Cygwin installation is recent enough that it is
>>>already running under LocalSystem.
>>>
>>>  When this issue started, the server was running openssh-8.7p1-1.  The
>>>server was subsequently updated to the latest, openssh-9.0p1-1, but there
>>>has been no change in the observed behavior.
>>>
>>>Best Regards,
>>>
>>>Dale Lobb


________________________________

CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use of the intended recipients and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message.

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Dale Lobb.vcf --]
[-- Type: text/x-vcard; name="Dale Lobb.vcf", Size: 4581 bytes --]

BEGIN:VCARD
VERSION:2.1
X-MS-SIGNATURE:YES
N;LANGUAGE=en-us:Lobb;Dale
FN:Dale Lobb
ORG:Bryan Health;Information Technology
TITLE:Systems Programmer
TEL;WORK;VOICE:(402) 481-2109
TEL;CELL;VOICE:(402) 730-1050
TEL;WORK;FAX:(402) 481-8354
ADR;WORK;PREF:;;1600 South 48th Street;Lincoln;NE;68506-1299;United States of America
LABEL;WORK;PREF;ENCODING=QUOTED-PRINTABLE:1600 South 48th Street=0D=0A=
Lincoln, NE 68506-1299
X-MS-OL-DEFAULT-POSTAL-ADDRESS:2
URL;WORK:www.bryanhealth.org
EMAIL;PREF;INTERNET:dale.lobb@bryanhealth.org
X-MS-CARDPICTURE;TYPE=JPEG;ENCODING=BASE64:
 /9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAcFBQYFBAcGBQYIBwcIChELCgkJChUPEAwRGBUa
 GRgVGBcbHichGx0lHRcYIi4iJSgpKywrGiAvMy8qMicqKyr/2wBDAQcICAoJChQLCxQqHBgc
 KioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKioqKir/wAAR
 CAA1AGoDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAA
 AgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkK
 FhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWG
 h4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl
 5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREA
 AgECBAQDBAcFBAQAAQJ3AAECAxE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tOk+6G+ZSPVW7V60akalPVXXZ/ozxHTlQqb2fdbfNHpunXkd/p8N3Cf3cyB1+hq1iqGj
 QwQaPbRWmRAsYCAnnFX68OWkmfSQu4psU9K4WTTPEUfj2TXbfTbd7dofIETXQViB/FnHH0ru
 qKRZxev6X4h8VWg0ye3tdL0+R1NxIJ/OkdQcgKAoA5A61C2havb+NbHUbTT4vsFjbfZUU3A3
 FMYz+Xau6oNAFe5iiurOWG6UGKRCkin0I5FcB4E0m6bUH+0XC3Ol6PNLFp7gcOzHlvfAyPqT
 XV634Zi1y6ie5vLqOFF2vBFKVWQZ70/UtJdtGhsdI22whliKBeAqq4J/QfjQBgaXpWuaDrWq
 PBZ2t8t9N5kd09xsMf8AssMEnHtRoWl674fu9XaS2t777bKZ1eOYIASOhDdqsf2Bqa3EDzOb
 hY7uSRvnAypxjj8OlLc6LrUtxqsyyR4v7aaFYw5HlnbiM/4/WgBngfTNW8P6DLYajaxGVZHl
 jMc4w5bHHtSeDNK1fSbjU/7TtYY47yczq8cwfbnsRWjJpM93qEF5LAsLpbSxsPMyd527Dx7A
 0aDpOoafPG17cmZRaLFyfusDz9frTA8y1nwWbjxXqOpeJLwxWz3LtBbwtvmlXdx3wq4//VXS
 aJNLcyQ6ZpmnRx6Wh2mDbuG31LHvW0PBrXus3N3qMmInmZkRTyRnjntXT2tnDZQiK1iWNB2A
 r0J4mPIo7v8ABHi08JUdRyeiv82OtoEtbZIYx8qDAqXH1pwzSba85nspK2w6iiigYUUUUAFB
 6UUUAJS4oooAKKKKACiiigAooooA/9k=

X-MS-OL-DESIGN;CHARSET=utf-8:<card xmlns="http://schemas.microsoft.com/office/outlook/12/electronicbusinesscards" ver="1.0" layout="left" bgcolor="ffffff"><img xmlns="" align="mid" area="46" use="cardpicture"/><fld xmlns="" prop="name" align="left" dir="ltr" style="b" color="000000" size="10"/><fld xmlns="" prop="title" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="dept" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="org" align="left" dir="ltr" color="000000" size="8"/><fld xmlns="" prop="blank" size="4"/><fld xmlns="" prop="addrwork" align="left" dir="ltr" color="000000" size="7"/><fld xmlns="" prop="telwork" align="left" dir="ltr" color="000000" size="7"><label align="right" color="626262">(Work)</label></fld><fld xmlns="" prop="faxwork" align="left" dir="ltr" color="000000" size="7"><label align="right" color="626262">(Fax)</label></fld><fld xmlns="" prop="telcell" align="left" dir="ltr" color="000000" size="7"><label align="right" color="626262">(Mobile)</label></fld><fld xmlns="" prop="email" align="left" dir="ltr" color="000000" size="7"/><fld xmlns="" prop="webwork" align="left" dir="ltr" color="000000" size="7"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/><fld xmlns="" prop="blank" size="8"/></card>
REV:20220607T162238Z
END:VCARD

  reply	other threads:[~2022-07-14  1:47 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-24 22:15 Dale Lobb
2022-05-25 17:51 ` Achim Gratz
2022-05-26 23:43   ` Stephen Carrier
2022-07-14  1:47     ` Dale Lobb [this message]
2022-05-26 23:39 ` Stephen Carrier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ca6b1a16f76e4a9bb5f1817281424f4b@bryanhealth.org \
    --to=dale.lobb@bryanhealth.org \
    --cc=Stromeko@nexgo.de \
    --cc=carrier@berkeley.edu \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).