From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 77644 invoked by alias); 14 Mar 2019 17:29:24 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 77629 invoked by uid 89); 14 Mar 2019 17:29:23 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-102.5 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=password, device, H*F:D*cygwin.com X-HELO: mout.kundenserver.de Received: from mout.kundenserver.de (HELO mout.kundenserver.de) (217.72.192.75) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 14 Mar 2019 17:29:22 +0000 Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1M4bA0-1h51rd1eII-001f4d for ; Thu, 14 Mar 2019 18:29:19 +0100 Received: by calimero.vinschen.de (Postfix, from userid 500) id 7F222A80746; Thu, 14 Mar 2019 18:29:18 +0100 (CET) Date: Thu, 14 Mar 2019 17:29:00 -0000 From: Corinna Vinschen To: cygwin@cygwin.com Subject: Re: sshd: fatal: seteuid XXX : No such device or address Message-ID: <20190314172918.GJ3785@calimero.vinschen.de> Reply-To: cygwin@cygwin.com Mail-Followup-To: cygwin@cygwin.com References: <011a01d4da5a$96247330$c26d5990$@giraudbtp.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="IB/7nB5ie+9rgeRN" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) X-SW-Source: 2019-03/txt/msg00380.txt.bz2 --IB/7nB5ie+9rgeRN Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-length: 1448 On Mar 14 16:53, Houder wrote: > On Thu, 14 Mar 2019 12:39:30, XXXXX wrote: > > Hello the list,=20 > >=20 > > Thanks for all the work and effort put into this. > > Since two days i cannot login anymore (password less) with ssh into my > > server > >=20 > > Server is :=20 > > Microsoft Windows Server 2012 R2 Essentials / 6.3.9600 N/A version 9600 > >=20 > > Cygwin was not up to date, but I have since updated it > > CYGWIN_NT-6.3 [MACHINE NAME] 3.0.3(0.338/5/3) 2019-03-09 19:12 x86_64 C= ygwin > >=20 > > I can login via password, it work and lets me in. > > But if i tried with my keys, I get in the event viewer : > > sshd: PID 3777: fatal: seteuid 1049076: No such device or address >=20 > Corinna, >=20 > As far as I know, seteuid() can either return EINVAL or EPERM in case of > an error. >=20 > EPERM (=3D 1) "Operation not permitted" > EINVAL(=3D 22) "Invalid argument" >=20 > "No such device or address" appears to correspond to ENXIO (=3D 6). Is it > sshd, or is it Cygwin, that is confused here? No confusion as such. The underlying Windows function returns a NT status code, which is converted to a Win32 error code by a Windows function, and that Win32 error code is converted to a POSIX errno by Cygwin. There are much more NT status codes than Win32 error codes, and there are much more Win32 error codses than POSIX errno values, so the mapping is inevitably unsatisfying. Corinna --=20 Corinna Vinschen Cygwin Maintainer --IB/7nB5ie+9rgeRN Content-Type: application/pgp-signature; name="signature.asc" Content-length: 833 -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlyKj24ACgkQ9TYGna5E T6ALUw/9GX/PIT1Zupq9Ely3/sjm7RpIdNOpczN1DDXEcrXzbAVQbEJNTcYAzLXG sFs8r1Oz4Tagtq8d6yxArQYrvHW9od526na8zxRcwlNAFFVrAht5o8Dbcvq7dbL4 7f5sP2CdLnKtDfwrYaZ6syOs8LGJAuz8PdLavvqYAgJZqlr/SaNNBfRhThIzyis9 j821BchP8qCLSt4B+rWf7074VwWN4VKcVc2rmFUOV6gMU8Q5VGm0ZsCfMEoqhoPO JEbm4YgHYNInQ1+kJY6e8KE+1Tj5V05PoDmsaUR+k2XnrhCq68TpsRUD3AxK7HKf c7RAAYG9jiHkZHAaJ1tMN7vECkd7BdYgNdIDJ1CaFXY4PM3J6i6+zYnNbQFl+lkw XLuuRS+ORZpEWx0sJLe/TElDkK03m9QTjO/BfscujE1OYwnM3Qhb15tthlMwENks wvluvLrYnf3qTJTKRhKdtRq47QuVhV58YD7NISDtOVRdP3H8si1+LpqJ9Sa5qHg1 rST0HSBzVHmc6ETuELoRiuLr6xPccxyG/XrS6A+hmkAiCU7/1vrGzOxSyE0vrL0Y SUrlPNRcj/W04GQQ8VYObTxEiIQMkqJMvkEG9F2JDGnwB0EmfBwpr2Ror2CG841o cRdWr1o2LTeFxB6Fd4GVnN+QX8+mgyWbmjU2pYS03SEZRy5rMw4= =q7TZ -----END PGP SIGNATURE----- --IB/7nB5ie+9rgeRN--