www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/09/15/19:47:45

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A30A43984018
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1600213613;
bh=2iNtPfSW9GD/g6LEJxYe+Gw6j+zrTZKVDvnmyrRgW2Q=;
h=To:Subject:Date:References:In-Reply-To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
From;
b=NMGgKchpeny+9zJ9mJp7JFWIuVP+11fkVAsshYpFO5eXk+eZZKV4pOHDEy4GYgWJs
jIRMXJ1owxOTKPvjw2jWLm63Yh3gCFwDO3Bnhbiu3B1RnmDbVZ/UAesUyVBCZxS5it
rpA1LrXHBBv9b+d15V1kgy/NXSdlvfvLxY42j3xk=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 4FE233984009
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;
b=C5fW0KeP/btyXx8iTPE0vTZuq9EvHYOmRZ2da6DZrVogQtnPPI6B650nNQusqDx2CHvUDhU3wR8yrIJ5lmDOfTHbZYGmvTVJ2VX/MLN8XLGYDlbkuUySa01RKVPc808ulIDDSy7GDvTiLPpYuDhIiyPpABOemzwVJcgHAgzwDg1Y0ynxEvS/H1EoG/cp1ocMDvFKutVGDv2g3lgP/XMQvZ6nswYqmaxI0csrVgY3yuYpvojGNB4CwG3PI+l/TTEphrYRsaFUEgr8nP7TSPHeUdD03sS3Q741zP70fWh+sZcq4ZWqMev/cLp0Nsdm0fiyNUHjeLr7xhYxWb18lcRiTg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;
s=arcselector9901;
h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;
bh=ZMfUBKMShqqpLSIl2UTRDeAzqrNs2s094zkd5t0qIMA=;
b=Qu4nc35YJ7Ihns1m/UIqnBhvwGBEF15RHp7TRweRcjYGX0qR7Pft+4kLvyBK8NoEUST40J5ipNxyL5OSpfPVr3ileXf/pdNPLsNTLmC/0Xxj3ny8XqwPB9nZYoYZrFWn+5nm6pH24Zcs6R3SIKdzMXQqFg1uqoQFTWHQtYiELeQbkIOO/Erk4P7r2eOJ/ow+LX1x29stoZeU39pEYweSoB/ZFpwGiiZquem/qyO57Gf1QnsN9bszQDix/03mJ2c0ZqVE8G9hQGOBhYP/b9DfbF1366Tyeni4SKdi55ZepZQ40JSA8T3NkgHNGza5mZS3Z8FmAjR/l+TkPZM+0k9wJA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none;
dkim=none; arc=none
To: Stephen Carrier <carrier AT berkeley DOT edu>
Subject: RE: Cygwin 3.1.5, 3.1.6 and 3.1.7 builds reporting tty errors with
OpenSSH Services in indows Event Logs
Thread-Topic: Cygwin 3.1.5, 3.1.6 and 3.1.7 builds reporting tty errors with
OpenSSH Services in indows Event Logs
Thread-Index: AQHWimyrua1JAbiy+k2q5CDogAxBaalp4/cAgAB0yCo=
Date: Tue, 15 Sep 2020 23:46:30 +0000
Message-ID: <SLXP216MB033485D12F6EBE5E3B0541B09A200@SLXP216MB0334.KORP216.PROD.OUTLOOK.COM>
References: <PSXP216MB0326EB9E66CDF66CED3EAA609A230 AT PSXP216MB0326 DOT KORP216 DOT PROD DOT OUTLOOK DOT COM>,
<20200915162230 DOT GA14401 AT iguana DOT crashland DOT org>
In-Reply-To: <20200915162230.GA14401@iguana.crashland.org>
Accept-Language: en-AU, en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-incomingtopheadermarker: OriginalChecksum:8FD935EFEC95051E08A95531ADF33C775A1DB73D155D1B0931747064B0DA5C87;
UpperCasedChecksum:8A121C6B82DE92EA50D2712419DD30A00D885D2282F54880A248132D09D5D8B5;
SizeAsReceived:2952; Count:44
x-ms-exchange-messagesentrepresentingtype: 1
x-tmn: [ZjTZdchSs5sUArCMQECmB3NrHLz+2bkn]
x-ms-publictraffictype: Email
x-incomingheadercount: 44
x-eopattributedmessage: 0
x-ms-office365-filtering-correlation-id: 317ddae8-0c9b-4f66-56f3-08d859d191f6
x-ms-traffictypediagnostic: HK2APC01HT105:
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 9OWe4OgIcjffvYbWaJN1vN8fxkDZ6knxc+If+ssE5qbDqHa/Abndu/rZFR146KpAdZ0C0mdap4zXagujqucgBGgEhxm5IM/fpXh8xq8N5w8bNVaUl1BR+0cyocGWZQWrZ4iCpTwwNOOk5lHZsZfyqI+4oTXiEgwGbOSQ30BbNIR5jnh8LYa5aeQZYRxYpmvmUIyWjoyhFji4bm7tUisuz3VWGzYT1Kn3iMQeXA3tx8U=
x-ms-exchange-antispam-messagedata: WRaqibyeFeTq3L/5LMhUEd2H+YtIVk6zPcvLvbWoEbaV6JIcIJdtoKBMrJTg/YHDtFEQjNT20ctMNQb6l1z5jx25b4f5kyYl5dzbtJryfJFySohy8WpnxXRWcJ9W2jv8jNf0Dc7DIPYIW8gzpfRcQw==
x-ms-exchange-transport-forked: True
MIME-Version: 1.0
X-OriginatorOrg: hotmail.com
X-MS-Exchange-CrossTenant-AuthAs: Anonymous
X-MS-Exchange-CrossTenant-AuthSource: HK2APC01FT007.eop-APC01.prod.protection.outlook.com
X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-Network-Message-Id: 317ddae8-0c9b-4f66-56f3-08d859d191f6
X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2020 23:46:30.4172 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Internet
X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT105
X-Spam-Status: No, score=-1.6 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE,
SPF_HELO_PASS, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-Content-Filtered-By: Mailman/MimeDel 2.1.29
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Peter Board via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Peter Board <p_board AT hotmail DOT com>
Cc: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id 08FNlKa4023998

Hi Stephen,

Thanks for responding. I have a standard Cygwin install on my Development server (32bit and 64bit setups) that I extract the updates from for our custom package and I tested for the fault after I saw it was occurring in our custom Cygwin install using the standard Cygwin setup. The same errors are being logged in the standard Cygwin install. I ran the Cygwin sshd installation script in the standard 64bit Cygwin install, to create the Cygwin OpenSSH service, authorised my user account to login and found that the Windows Event logs also logged the same errors as our normal package location.

I keep the standard installs on “F:\Cygwin” (32bit Cygwin) and “F:\Cygwin64” (64bit Cygwin).

Our Custom Cygwin \ OpenSSH package lives on “C:\Program Files(x86)\OpenSSH”, which is where we have kept it for 15+ odd years.

After setting up the Cygwin (64bit version) just using a out of the box Cygwin installer on F:\Cygwin64, I setup OpenSSH using the built in /bin/ssh-host-config script and then authorised my user to login to the “cygsshd” service. The standard SSH service with no modifications from me, produces these errors in the Windows Event Logs.

It accepted the password and logged the user in fine to bash shell. (I’ve removed the hostname and username from the example below)

---------- Event Log Entries ------------

Log Name:      Application
Source:        sshd
Date:          14/09/2020 4:30:26 PM
Event ID:      0
Task Category: None
Level:         Information
Keywords:      Classic
User:          SYSTEM
Computer:      hostname
Description:
The description for Event ID 0 from source sshd cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

sshd: PID 1620: Accepted password for USERNAME from X.X.X.X port 56545 ssh2

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="sshd" />
    <EventID Qualifiers="0">0</EventID>
    <Level>4</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2020-09-14T06:30:26.000000000Z" />
    <EventRecordID>2427841</EventRecordID>
    <Channel>Application</Channel>
    <Computer>hostname</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data>sshd: PID 1620: Accepted password for USERNAME from X.X.X.X port 56545 ssh2</Data>
  </EventData>
</Event>

---------- Event Log Entries ------------

Log Name:      Application
Source:        sshd
Date:          14/09/2020 4:30:27 PM
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          SYSTEM
Computer:      hostname
Description:
The description for Event ID 0 from source sshd cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

sshd: PID 1622: error: Failed to disconnect from controlling tty.

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="sshd" />
    <EventID Qualifiers="0">0</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2020-09-14T06:30:27.000000000Z" />
    <EventRecordID>2427842</EventRecordID>
    <Channel>Application</Channel>
    <Computer>hostname</Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data>sshd: PID 1622: error: Failed to disconnect from controlling tty.</Data>
  </EventData>
</Event>
---------- Event Log Entries ------------

Log Name:      Application
Source:        sshd
Date:          14/09/2020 4:30:27 PM
Event ID:      0
Task Category: None
Level:         Error
Keywords:      Classic
User:          SYSTEM
Computer:      hostname
Description:
The description for Event ID 0 from source sshd cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event:

sshd: PID 1622: error: ioctl(TIOCSCTTY): Operation not permitted

Event Xml:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="sshd" />
    <EventID Qualifiers="0">0</EventID>
    <Level>2</Level>
    <Task>0</Task>
    <Keywords>0x80000000000000</Keywords>
    <TimeCreated SystemTime="2020-09-14T06:30:27.000000000Z" />
    <EventRecordID>2427843</EventRecordID>
    <Channel>Application</Channel>
    <Computer> hostname </Computer>
    <Security UserID="S-1-5-18" />
  </System>
  <EventData>
    <Data>sshd: PID 1622: error: ioctl(TIOCSCTTY): Operation not permitted</Data>
  </EventData>
</Event>

-------------- End of Entries ------------------

Regards,

Peter

Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10

From: Stephen Carrier<mailto:carrier AT berkeley DOT edu>
Sent: Wednesday, 16 September 2020 2:22 AM
To: Peter Board<mailto:p_board AT hotmail DOT com>
Cc: cygwin AT cygwin DOT com<mailto:cygwin AT cygwin DOT com>
Subject: Re: Cygwin 3.1.5, 3.1.6 and 3.1.7 builds reporting tty errors with OpenSSH Services in indows Event Logs

On Mon, Sep 14, 2020 at 08:18:53AM +0000, Peter Board via Cygwin wrote:
> Hi,
>
> I am trying to update our Cygwin libraries at work, which we use on many servers to provide OpenSSH services.
> I have been making update packages for many years from a Cygwin install on a development server, and went to update our systems to the latest OpenSSH 8.3p1 build.
>
> However after making the update package, I found that the Windows Event Log (or if Syslogd is setup – which we do have in our general Cygwin deployment /var/log/messages) gets two errors when using any version of the Cygwin Libraries after the 3.1.4 build.
>
>
> Sep 14 12:06:48 hostname sshd: PID 2093: error: Failed to disconnect from controlling tty.
>
> Sep 14 12:06:48 hostname sshd: PID 2093: error: ioctl(TIOCSCTTY): Operation not permitted

Can this be reproduced in a standard cygwin install?  It seems as if
your have a customized environment where you compile your own packages,
and updated the cygwin libs perhaps w/o updating openssh at the same time.

Stephen

--
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019