delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2019/03/14/07:39:47

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; q=dns; s=default; b=Mst
kGiEyU4P7YajyqE/wGeAMDhSNzyW5SLIXxXbRkHIhidMBNrmcLhUhHKMBPHoVg6a
3Z8bvroMKE3JzMhlFJrfBP9ykRS+Epgr3vOzvS8TsFOKKIwiD89cdiXh9sDMZfxW
nn9HXrouVdZUPiXr092cUjGPlNkVr5b8U5mJd0jg=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:mime-version
:content-type:content-transfer-encoding; s=default; bh=vjukoFIPL
iKkcz44yNAJrZOGXlc=; b=iUPuLY4qsW4mtn1474KqDEnZ6KhNZoLaXqhWVCluU
2OTqmUaN+4Mv/vO/sg7eTVMryc4yqraatNikbrVjzfihSqxPAxkZlQMywtvwCbZL
bxfhXdA8Qx+lCkRZnlaHaJxa71VgBAb8CMgJpjZ4kK7Xtc/LQIeweMfx2zACltpj
eM=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL,BAYES_00,SPF_PASS autolearn=ham version=3.3.1 spammy=HX-Languages-Length:4554, fe80, 9600, H*x:16.0
X-HELO: mail2.giraudbtp.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=giraudbtp.com; h= content-language:x-mailer:content-transfer-encoding:content-type :content-type:mime-version:message-id:date:date:subject:subject :to:from:from; s=dkim; t=1552563570; x=1553427571; bh=2TQ93cLA2a eg6r6rOHYIa/J13Js8dKX/Aaa/iygrc6k=; b=HlQvt6HK6vR/XGZyJNQnNMNnjf QrNJZa/P7VnqgK9CEfZ/hA+1vgvSX1pMLyhtwZZ6X8XAPgQfFLK6paITbNKaHJI7 +5AbsIOD93JtCV/TMGdq0R7fOfoTf8m672ilgaBIDLSjPjwi829/LeR9QEVaq/Es vgNAMuOmXj3KCi/v0=
X-Amavis-Modified: Mail body modified (using disclaimer) - mail.tls.giraudbtp.com
From: <renaud DOT rolles AT giraudbtp DOT com>
To: <cygwin AT cygwin DOT com>
Subject: sshd: fatal: seteuid XXX : No such device or address
Date: Thu, 14 Mar 2019 12:39:30 +0100
Message-ID: <011a01d4da5a$96247330$c26d5990$@giraudbtp.com>
MIME-Version: 1.0
X-IsSubscribed: yes
Note-from-DJ: This may be spam

Hello the list, 

Thanks for all the work and effort put into this.
Since two days i cannot login anymore (password less) with ssh into my
server

Server is : 
Microsoft Windows Server 2012 R2 Essentials / 6.3.9600 N/A version 9600

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 Cygwin

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

I tried googling around, reinstalled multiple times sshd, the user and the
service with no luck so far.
I was working for several years now.

For now I have no clue, so i'm asking what did I do wrong ?

Renaud ROLLES 


Below the output of the ssh-host-config, with start and try
administrator@[MACHINE NAME] ~
$ ssh-host-config

*** Info: Generating missing SSH host keys
*** Query: Overwrite existing /etc/ssh_config file? (yes/no) yes
*** Info: Creating default /etc/ssh_config file
*** Query: Overwrite existing /etc/sshd_config file? (yes/no) yes
*** Info: Creating default /etc/sshd_config file

*** Info: StrictModes is set to 'yes' by default.
*** Info: This is the recommended setting, but it requires that the POSIX
*** Info: permissions of the user's home directory, the user's .ssh
*** Info: directory, and the user's ssh key files are tight so that
*** Info: only the user has write permissions.
*** Info: On the other hand, StrictModes don't work well with default
*** Info: Windows permissions of a home directory mounted with the
*** Info: 'noacl' option, and they don't work at all if the home
*** Info: directory is on a FAT or FAT32 partition.
*** Query: Should StrictModes be used? (yes/no) yes
*** Info: Updating /etc/sshd_config file

*** Query: Do you want to install sshd as a service?
*** Query: (Say "no" if it is already installed as a service) (yes/no) yes
*** Query: Enter the value of CYGWIN for the daemon: [] ntsec
*** Info: On Windows Server 2003, Windows Vista, and above, the
*** Info: SYSTEM account cannot setuid to other users -- a capability
*** Info: sshd requires.  You need to have or to create a privileged
*** Info: account.  This script will help you do so.

*** Info: It's not possible to use the LocalSystem account for services
*** Info: that can change the user id without an explicit password
*** Info: (such as passwordless logins [e.g. public key authentication]
*** Info: via sshd) when having to create the user token from scratch.
*** Info: For more information on this requirement, see
*** Info: https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-nopasswd1

*** Info: If you want to enable that functionality, it's required to create
*** Info: a new account with special privileges (unless such an account
*** Info: already exists). This account is then used to run these special
*** Info: servers.

*** Info: Note that creating a new user requires that the current account
*** Info: have Administrator privileges itself.

*** Info: No privileged account could be found.

*** Info: This script plans to use 'cyg_server'.
*** Info: 'cyg_server' will only be used by registered services.
*** Query: Do you want to use a different name? (yes/no) no
*** Query: Create new privileged user account '[MACHINE NAME]\cyg_server'
(Cygwin name: '[MACHINE NAME]+cyg_server')? (yes/no) yes
*** Info: Please enter a password for new user [MACHINE NAME]+cyg_server.
Please be sure
*** Info: that this password matches the password rules given on your
system.
*** Info: Entering no password will exit the configuration.
*** Query: Please enter the password:
*** Query: Reenter:

*** Info: User '[MACHINE NAME]+cyg_server' has been created with password
'UberSuperPassword1324'.
*** Info: If you change the password, please remember also to change the
*** Info: password for the installed services which use (or will soon use)
*** Info: the '[MACHINE NAME]+cyg_server' account.


*** Info: The sshd service has been installed under the '[MACHINE
NAME]+cyg_server'
*** Info: account.  To start the service now, call `net start sshd' or
*** Info: `cygrunsrv -S sshd'.  Otherwise, it will start automatically
*** Info: after the next reboot.

*** Info: Host configuration finished. Have fun!

administrator@[MACHINE NAME] ~
$ net start sshd
Le service CYGWIN sshd d-marre.
Le service CYGWIN sshd a d-marr-.


administrator@[MACHINE NAME] ~
$ ssh administrator@[MACHINE NAME]
Connection closed by fe80::8c27:9bb9:70e3:1a0c%12 port 22


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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