public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* ssh keys not working after server crash
       [not found] <035e01d34806$45ab1540$d1013fc0$@gmail.com>
@ 2017-10-18 11:45 ` Mike Adkins
  2017-10-20 17:36   ` Andrew Schulman
  0 siblings, 1 reply; 3+ messages in thread
From: Mike Adkins @ 2017-10-18 11:45 UTC (permalink / raw)
  To: 'Marco Atzeri', cygwin

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


Attached are the instructions I used about a year ago to install and it’s been working fine until about 3 weeks ago.  The server crashed (due to MS patches I believe) and when it came up the system didn’t look right..  I installed syslog-ng to see if it would help me get some logging.

Prior to the crash, users were restricted to their home directories..  Now I see dev in the folder list even though it was hidden before and fstab was not changed.
According to the instructions I used to install, /home was to be owned by cyg_server, but it shows as owned by Administrator now.  I suspect a permission problem I am having with ssh keys not working..

2017-10-11 19:30:04, 00001: Session(0AC80001): SENT : USERAUTH_REQUEST [none]
2017-10-11 19:30:04, 00001: Session(0AC80001): RECV : USERAUTH_FAILURE, continuations [publickey,password,keyboard-interactive]
2017-10-11 19:30:05, 00001: Session(0AC80001): SENT : USERAUTH_REQUEST [publickey (ssh-rsa) - unsigned,fingerprint (SHA-2 hash): 57:ed:24:74:ce:88:71:a8:15:ae:72:8a:dd:42:be:b6:76:8c:f2:65:f8:1b:41:29:92:95:63:1d:24:b4:d5:85]
2017-10-11 19:30:05, 00001: Session(0AC80001): SENT : USERAUTH_REQUEST [publickey (ssh-rsa) - unsigned,fingerprint (SHA-1 hash): 33:f2:36:9c:2f:45:7e:87:74:fb:d5:6e:ca:44:e6:99:03:53:80:c6]
2017-10-11 19:30:05, 00001: Session(0AC80001): SENT : USERAUTH_REQUEST [publickey (ssh-rsa) - unsigned,fingerprint (MD5 hash): ba:b7:6c:0b:88:87:74:c6:a0:eb:e5:bd:06:bb:53:10]
2017-10-11 19:30:05, 00001: Session(0AC80001): RECV : USERAUTH_FAILURE, continuations [publickey,password,keyboard-interactive]
2017-10-11 19:30:05, 00001: Session(0AC80001): SEND: Disconnect packet: The user canceled authentication.

Cygcheck attached.



-----Original Message-----
From: Marco Atzeri [mailto:marco.atzeri@gmail.com] 
Sent: Tuesday, October 17, 2017 11:33 AM
To: mailto:cygwin@cygwin.com; mailto:bmike.adkins@gmail.com
Subject: Re: Cygwin Help needed

On 17/10/2017 17:21, Mike Adkins wrote:
> It will not let me chown cyg_server /home

you should not do it.

> 
> From: Mike Adkins
> Sent: Tuesday, October 17, 2017 11:18 AM
> To: cygwin cygwin.com
> Subject: RE: Cygwin Help needed
> 
>   
> 
> Any help?

There was already an answer
https://cygwin.com/ml/cygwin/2017-10/msg00145.html

asking for more details mentioning the  guidelines for reporting problems at  https://cygwin.com/problems.html.
In particular, please attach output of
cygcheck -svr.

If you are not subscribed to the mail list I assume you have not received that reply.

Regards
MArco


[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 31492 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Tue Oct 17 16:49:20 2017

Windows 2012 R2 Server Standard Ver 6.3 Build 9600 

Running in Terminal Service session

Path:	C:\cygwin64\usr\local\bin
	C:\cygwin64\bin
	C:\Windows\system32
	C:\Windows
	C:\Windows\System32\Wbem
	C:\Windows\System32\WindowsPowerShell\v1.0
	C:\Program Files (x86)\WinSCP

Output from C:\cygwin64\bin\id.exe
UID: 197108(Administrator) GID: 197121(None)
197121(None)               544(Administrators)
555(Remote Desktop Users)  545(Users)

SysDir: C:\Windows\system32
WinDir: C:\Windows

USER = 'Administrator'
PWD = '/home'
HOME = '/home'

USERDOMAIN = '10-118-13-11'
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\Windows\system32\WindowsPowerShell\v1.0\Modules\'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
FP_NO_HOST_CHECK = 'NO'
LANG = 'en_US.UTF-8'
TZ = 'America/New_York'
HOSTNAME = '10-118-13-11'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/c/Users/Administrator/Desktop'
USERNAME = 'Administrator'
LOGONSERVER = '\\10-118-13-11'
PROCESSOR_ARCHITECTURE = 'AMD64'
CLIENTNAME = 'REM-00014069'
LOCALAPPDATA = 'C:\Users\Administrator\AppData\Local'
COMPUTERNAME = '10-118-13-11'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Users\Administrator'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
SYSTEMROOT = 'C:\Windows'
USERDOMAIN_ROAMINGPROFILE = '10-118-13-11'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 45 Stepping 2, GenuineIntel'
TMP = '/tmp'
PROCESSOR_REVISION = '2d02'
PROFILEREAD = 'true'
NUMBER_OF_PROCESSORS = '2'
ProgramW6432 = 'C:\Program Files'
COMSPEC = 'C:\Windows\system32\cmd.exe'
APPDATA = 'C:\Users\Administrator\AppData\Roaming'
SHELL = '/bin/bash'
TERM = 'xterm'
WINDIR = 'C:\Windows'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
PRINTER = 'Microsoft XPS Document Writer'
PROGRAMFILES = 'C:\Program Files'
ALLUSERSPROFILE = 'C:\ProgramData'
TEMP = '/tmp'
SESSIONNAME = 'RDP-Tcp#59'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
HOMEDRIVE = 'C:'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
HOMEPATH = '\Users\Administrator'
ORIGINAL_PATH = '/c/Windows/system32:/c/Windows:/c/Windows/System32/Wbem:/c/Windows/System32/WindowsPowerShell/v1.0:/c/Program Files (x86)/WinSCP'
EXECIGNORE = '*.dll'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\EscDomains\cygwin.com
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings\ZoneMap\EscDomains\cygwin.com\www
  (default) = 0x00000002
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\Users\Administrator\Downloads'
  e022582115c10879 = '\??\C:\cygwin64'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\cygwin64'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: d982767eb939dc0e Path: C:\Users\Administrator\Downloads (ORPHANED)
  System: Key: e022582115c10879 Path: C:\cygwin64

a:  fd             N/A    N/A                      
c:  hd  NTFS   1023646Mb  75% CP CS UN PA FC     EN
d:  cd             N/A    N/A                      

C:/cygwin64               /                    system  binary,noacl
C:\SFTP_ROOT              /home                system  binary,noacl
C:/cygwin64/bin           /usr/bin             system  binary,noacl
C:/cygwin64/lib           /usr/lib             system  binary,noacl
C:\cygwin64\etc\terminfo  /usr/share/terminfo  system  binary,noacl
cygdrive prefix           /                    user    text,auto

Found: C:\cygwin64\bin\awk
 -> C:\cygwin64\bin\gawk.exe
Found: C:\cygwin64\bin\bash.exe
Found: C:\cygwin64\bin\cat.exe
Found: C:\cygwin64\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin64\bin\find.exe
Found: C:\Windows\system32\find.exe
Warning: C:\cygwin64\bin\find.exe hides C:\Windows\system32\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin64\bin\grep.exe
Found: C:\cygwin64\bin\kill.exe
Not Found: ld
Found: C:\cygwin64\bin\ls.exe
Not Found: make
Found: C:\cygwin64\bin\mv.exe
Not Found: patch
Found: C:\cygwin64\bin\perl.exe
Found: C:\cygwin64\bin\rm.exe
Found: C:\cygwin64\bin\sed.exe
Found: C:\cygwin64\bin\ssh.exe
Found: C:\cygwin64\bin\sh.exe
Found: C:\cygwin64\bin\tar.exe
Found: C:\cygwin64\bin\test.exe
Found: C:\cygwin64\bin\vi.exe
Not Found: vim

   39k 2016/09/19 C:\cygwin64\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2016-09-19 02:13
   16k 2013/03/26 C:\cygwin64\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2013-03-26 18:26
  180k 2015/03/23 C:\cygwin64\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2015-03-23 09:46
   64k 2017/02/22 C:\cygwin64\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2017-02-22 07:22
   13k 2015/03/19 C:\cygwin64\bin\cygcom_err-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygcom_err-2.dll" v0.0 ts=2015-03-19 02:44
   39k 2017/09/03 C:\cygwin64\bin\cygcrypt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-0.dll" v0.0 ts=2017-09-03 08:18
 2235k 2017/01/26 C:\cygwin64\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.0.0.dll" v0.0 ts=2017-01-26 20:10
  486k 2017/08/14 C:\cygwin64\bin\cygcurl-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygcurl-4.dll" v0.0 ts=2017-08-14 07:56
 1549k 2016/08/22 C:\cygwin64\bin\cygdb-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb-5.3.dll" v0.0 ts=2016-08-22 09:51
  124k 2016/08/22 C:\cygwin64\bin\cygdb_cxx-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_cxx-5.3.dll" v0.0 ts=2016-08-22 09:52
  570k 2016/08/22 C:\cygwin64\bin\cygdb_sql-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_sql-5.3.dll" v0.0 ts=2016-08-22 09:52
  154k 2013/10/20 C:\cygwin64\bin\cygedit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygedit-0.dll" v0.0 ts=2013-10-20 21:56
   16k 2013/03/28 C:\cygwin64\bin\cygevtlog-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygevtlog-0.dll" v0.0 ts=2013-03-28 14:00
   30k 2014/10/14 C:\cygwin64\bin\cygfam-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygfam-0.dll" v0.0 ts=2014-10-14 21:33
   27k 2015/11/17 C:\cygwin64\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygffi-6.dll" v0.0 ts=2015-11-17 22:14
   55k 2017/06/18 C:\cygwin64\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygformw-10.dll" v0.0 ts=2017-06-18 22:23
   70k 2017/09/09 C:\cygwin64\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcc_s-seh-1.dll" v0.0 ts=2017-09-09 20:37
   39k 2016/10/10 C:\cygwin64\bin\cyggdbm-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm-4.dll" v0.0 ts=2016-10-10 09:26
   13k 2016/10/10 C:\cygwin64\bin\cyggdbm_compat-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm_compat-4.dll" v0.0 ts=2016-10-10 09:26
 1364k 2017/09/04 C:\cygwin64\bin\cyggio-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggio-2.0-0.dll" v0.0 ts=2017-09-04 20:32
  976k 2017/09/04 C:\cygwin64\bin\cygglib-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygglib-2.0-0.dll" v0.0 ts=2017-09-04 20:27
   15k 2017/09/04 C:\cygwin64\bin\cyggmodule-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmodule-2.0-0.dll" v0.0 ts=2017-09-04 20:27
  527k 2017/01/21 C:\cygwin64\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmp-10.dll" v0.0 ts=2017-01-21 18:25
  284k 2017/09/04 C:\cygwin64\bin\cyggobject-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggobject-2.0-0.dll" v0.0 ts=2017-09-04 20:28
  258k 2016/09/26 C:\cygwin64\bin\cyggssapi_krb5-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyggssapi_krb5-2.dll" v0.0 ts=2016-09-26 06:55
    9k 2017/09/04 C:\cygwin64\bin\cyggthread-2.0-0.dll - os=4.0 img=0.0 sys=5.2
                  "cyggthread-2.0-0.dll" v0.0 ts=2017-09-04 20:27
   33k 2017/02/13 C:\cygwin64\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
                  "cyghistory7.dll" v0.0 ts=2017-02-11 22:39
 1009k 2015/02/20 C:\cygwin64\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiconv-2.dll" v0.0 ts=2015-02-20 17:07
  197k 2017/05/02 C:\cygwin64\bin\cygidn-11.dll - os=4.0 img=0.0 sys=5.2
                  "cygidn-11.dll" v0.0 ts=2017-05-02 01:18
  111k 2017/09/25 C:\cygwin64\bin\cygidn2-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygidn2-0.dll" v0.0 ts=2017-09-25 03:16
   42k 2016/10/23 C:\cygwin64\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygintl-8.dll" v0.0 ts=2016-10-23 07:17
  177k 2016/09/26 C:\cygwin64\bin\cygk5crypto-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygk5crypto-3.dll" v0.0 ts=2016-09-26 06:55
  722k 2016/09/26 C:\cygwin64\bin\cygkrb5-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygkrb5-3.dll" v0.0 ts=2016-09-26 06:55
   35k 2016/09/26 C:\cygwin64\bin\cygkrb5support-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygkrb5support-0.dll" v0.0 ts=2016-09-26 06:54
   45k 2015/11/19 C:\cygwin64\bin\cyglber-2-4-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyglber-2-4-2.dll" v0.0 ts=2015-11-19 14:17
  246k 2015/11/19 C:\cygwin64\bin\cygldap-2-4-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygldap-2-4-2.dll" v0.0 ts=2015-11-19 14:18
  262k 2015/11/19 C:\cygwin64\bin\cygldap_r-2-4-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygldap_r-2-4-2.dll" v0.0 ts=2015-11-19 14:19
    6k 2017/09/12 C:\cygwin64\bin\cyglsa64.dll - os=4.0 img=0.0 sys=5.2
                  "cyglsa64.dll" v0.0 ts=2017-09-12 16:14
  139k 2017/05/10 C:\cygwin64\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzma-5.dll" v0.0 ts=2017-05-10 01:17
  121k 2017/05/03 C:\cygwin64\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmagic-1.dll" v0.0 ts=2017-05-03 18:25
  169k 2016/10/10 C:\cygwin64\bin\cygman-2-7-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygman-2-7-5.dll" v0.0 ts=2016-10-10 22:07
   22k 2016/10/10 C:\cygwin64\bin\cygmandb-2-7-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygmandb-2-7-5.dll" v0.0 ts=2016-10-10 22:07
   29k 2017/06/18 C:\cygwin64\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygmenuw-10.dll" v0.0 ts=2017-06-18 22:22
  346k 2017/08/01 C:\cygwin64\bin\cygmpfr-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-4.dll" v0.0 ts=2017-08-01 20:24
   53k 2017/06/18 C:\cygwin64\bin\cygncurses++w-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncurses++w-10.dll" v0.0 ts=2017-06-18 22:34
  288k 2017/06/18 C:\cygwin64\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncursesw-10.dll" v0.0 ts=2017-06-18 22:19
  138k 2017/06/18 C:\cygwin64\bin\cygnghttp2-14.dll - os=4.0 img=0.0 sys=5.2
                  "cygnghttp2-14.dll" v0.0 ts=2017-06-18 20:48
 1003k 2017/04/28 C:\cygwin64\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygp11-kit-0.dll" v0.0 ts=2017-04-28 05:23
   14k 2017/06/18 C:\cygwin64\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygpanelw-10.dll" v0.0 ts=2017-06-18 22:21
  475k 2017/04/23 C:\cygwin64\bin\cygpcre-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre-1.dll" v0.0 ts=2017-04-24 00:50
 2021k 2017/07/15 C:\cygwin64\bin\cygperl5_22.dll - os=4.0 img=0.0 sys=5.2
                  "cygperl5_22.dll" v0.0 ts=2017-07-15 19:12
   39k 2015/04/09 C:\cygwin64\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpipeline-1.dll" v0.0 ts=2015-04-09 21:04
   41k 2016/07/13 C:\cygwin64\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpopt-0.dll" v0.0 ts=2016-07-13 06:16
   53k 2017/08/11 C:\cygwin64\bin\cygpsl-5.dll - os=4.0 img=0.0 sys=5.2
                  "cygpsl-5.dll" v0.0 ts=2017-08-11 06:56
  219k 2017/02/13 C:\cygwin64\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
                  "cygreadline7.dll" v0.0 ts=2017-02-11 22:39
   96k 2017/04/16 C:\cygwin64\bin\cygsasl2-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygsasl2-3.dll" v0.0 ts=2017-04-16 19:15
   11k 2015/07/17 C:\cygwin64\bin\cygsigsegv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygsigsegv-2.dll" v0.0 ts=2015-07-17 22:35
   89k 2015/03/23 C:\cygwin64\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygsmartcols-1.dll" v0.0 ts=2015-03-23 09:46
  156k 2016/03/02 C:\cygwin64\bin\cygssh2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygssh2-1.dll" v0.0 ts=2016-03-02 18:03
  399k 2017/01/26 C:\cygwin64\bin\cygssl-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.0.0.dll" v0.0 ts=2017-01-26 20:10
   12k 2017/09/09 C:\cygwin64\bin\cygssp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssp-0.dll" v0.0 ts=2017-09-09 21:58
 1335k 2017/09/09 C:\cygwin64\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygstdc++-6.dll" v0.0 ts=2017-09-09 21:13
  347k 2015/02/11 C:\cygwin64\bin\cygsyslog-ng-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygsyslog-ng-0.dll" v0.0 ts=2015-02-11 10:20
   66k 2017/05/29 C:\cygwin64\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygtasn1-6.dll" v0.0 ts=2017-05-29 23:32
   54k 2017/06/18 C:\cygwin64\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygticw-10.dll" v0.0 ts=2017-06-18 22:19
 1538k 2015/10/16 C:\cygwin64\bin\cygunistring-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygunistring-2.dll" v0.0 ts=2015-10-16 21:40
   15k 2015/03/23 C:\cygwin64\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguuid-1.dll" v0.0 ts=2015-03-23 09:46
   30k 2013/11/15 C:\cygwin64\bin\cygwrap-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygwrap-0.dll" v0.0 ts=2013-11-15 19:58
 1214k 2017/03/13 C:\cygwin64\bin\cygxml2-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygxml2-2.dll" v0.0 ts=2017-03-13 17:01
   83k 2017/03/03 C:\cygwin64\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
                  "cygz.dll" v0.0 ts=2017-03-03 21:42
 3077k 2017/09/12 C:\cygwin64\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2017-09-12 16:18
    Cygwin DLL version info:
        DLL version: 2.9.0
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 318
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Service             : sshd                
Display name        : CYGWIN sshd
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Environment         : CYGWIN="sshd" 
Process Type        : Own Process
Startup             : Manual
Dependencies        : tcpip
Account             : .\cyg_server

Service             : syslog-ng           
Display name        : CYGWIN syslog-ng
Current State       : Running
Controls Accepted   : Stop
Command             : /usr/sbin/syslog-ng -F
stdin path          : /dev/null
stdout path         : /var/log/syslog-ng.log
stderr path         : /var/log/syslog-ng.log
Process Type        : Own Process
Startup             : Manual
Account             : .\cyg_server


Cygwin Package Information
Last downloaded files to: C:\Users\Administrator\Desktop\setupfiles
Last downloaded files from: http://cygwin.mirror.constant.com/

Package                   Version             Status
_autorebase               001006-1            OK
alternatives              1.3.30c-10          OK
base-cygwin               3.8-1               OK
base-files                4.2-4               OK
bash                      4.4.12-3            OK
bzip2                     1.0.6-3             OK
ca-certificates           2.16-1              OK
coreutils                 8.26-2              OK
csih                      0.9.9-1             OK
cygrunsrv                 1.62-1              OK
cygutils                  1.4.16-2            OK
cygwin                    2.9.0-3             OK
cygwin-debuginfo          2.9.0-3             OK
dash                      0.5.9.1-1           OK
desktop-file-utils        0.23-1              OK
diffutils                 3.5-2               OK
editrights                1.03-1              OK
file                      5.30-1              OK
findutils                 4.6.0-1             OK
gamin                     0.1.10-15           OK
gawk                      4.1.4-3             OK
getent                    2.18.90-4           OK
grep                      3.0-2               OK
groff                     1.22.3-1            OK
gsettings-desktop-schemas 3.24.1-1            OK
gzip                      1.8-1               OK
hostname                  3.13-1              OK
info                      6.5-1               OK
ipc-utils                 1.0-2               OK
less                      487-1               OK
libargp                   20110921-3          OK
libattr1                  2.4.46-1            OK
libblkid1                 2.25.2-2            OK
libbz2_1                  1.0.6-3             OK
libcom_err2               1.42.12-2           OK
libcrypt0                 2.1-1               OK
libcurl4                  7.55.1-1            OK
libdb5.3                  5.3.28-1            OK
libedit0                  20130712-1          OK
libevtlog0                0.2.12-2            OK
libfam0                   0.1.10-15           OK
libffi6                   3.2.1-2             OK
libgcc1                   6.4.0-1             OK
libgdbm4                  1.12-1              OK
libglib2.0_0              2.52.3-1            OK
libgmp10                  6.1.2-1             OK
libgssapi_krb5_2          1.14.4-1            OK
libiconv                  1.14-3              OK
libiconv2                 1.14-3              OK
libidn11                  1.33-1              OK
libidn2_0                 2.0.4-1             OK
libintl8                  0.19.8.1-2          OK
libk5crypto3              1.14.4-1            OK
libkrb5_3                 1.14.4-1            OK
libkrb5support0           1.14.4-1            OK
liblzma5                  5.2.3-1             OK
libmpfr4                  3.1.5-1p10          OK
libncursesw10             6.0-11.20170617     OK
libnghttp2_14             1.23.1-1            OK
libopenldap2_4_2          2.4.42-1            OK
libopenssl100             1.0.2k-1            OK
libp11-kit0               0.23.5-1            OK
libpcre1                  8.40-3              OK
libpipeline1              1.4.0-1             OK
libpopt-common            1.16-2              OK
libpopt0                  1.16-2              OK
libpsl5                   0.18.0-1            OK
libreadline7              7.0.3-3             OK
libsasl2_3                2.1.26-11           OK
libsigsegv2               2.10-2              OK
libsmartcols1             2.25.2-2            OK
libssh2_1                 1.7.0-1             OK
libssp0                   6.4.0-1             OK
libstdc++6                6.4.0-1             OK
libtasn1_6                4.12-1              OK
libunistring2             0.9.6-1             OK
libuuid1                  2.25.2-2            OK
libwrap0                  7.6-22              OK
libxml2                   2.9.4-2             OK
login                     1.11-1              OK
lynx                      2.8.7-2             OK
man-db                    2.7.5-2             OK
mintty                    2.7.9-0             OK
ncurses                   6.0-11.20170617     OK
openssh                   7.5p1-1             OK
openssh-debuginfo         7.5p1-1             OK
openssl                   1.0.2k-1            OK
openssl-debuginfo         1.0.2k-1            OK
openssl-devel             1.0.2k-1            OK
openssl-perl              1.0.2k-1            OK
p11-kit                   0.23.5-1            OK
p11-kit-trust             0.23.5-1            OK
perl                      5.22.4-1            OK
perl-WWW-Curl             4.17-2              OK
perl_autorebase           5.22.4-1            OK
perl_base                 5.22.4-1            OK
pkg-config                0.29.1-1            OK
Empty package popt
popt                      1.16-2              OK
publicsuffix-list-dafsa   20170828-1          OK
rebase                    4.4.2-1             OK
run                       1.3.4-2             OK
sed                       4.4-1               OK
shared-mime-info          1.8-1               OK
syslog-ng                 3.2.5-2             OK
tar                       1.29-1              OK
Missing file: /usr/share/terminfo/61/ansi from package terminfo
Missing file: /usr/share/terminfo/64/dumb from package terminfo
Missing file: /usr/share/terminfo/6c/linux from package terminfo
Missing file: /usr/share/terminfo/76/vt100 from package terminfo
Missing file: /usr/share/terminfo/76/vt100-nav from package terminfo
Missing file: /usr/share/terminfo/76/vt102 from package terminfo
Missing file: /usr/share/terminfo/76/vt220 from package terminfo
Missing file: /usr/share/terminfo/76/vt52 from package terminfo
Missing file: /usr/share/terminfo/45/Eterm from package terminfo
Missing file: /usr/share/terminfo/45/Eterm-256color from package terminfo
Missing file: /usr/share/terminfo/45/Eterm-88color from package terminfo
Missing file: /usr/share/terminfo/45/Eterm-color from package terminfo
Missing file: /usr/share/terminfo/61/aterm from package terminfo
Missing file: /usr/share/terminfo/62/bterm from package terminfo
Missing file: /usr/share/terminfo/63/cons25 from package terminfo
Missing file: /usr/share/terminfo/63/cygwin from package terminfo
Missing file: /usr/share/terminfo/65/eterm from package terminfo
Missing file: /usr/share/terminfo/65/eterm-color from package terminfo
Missing file: /usr/share/terminfo/67/gnome from package terminfo
Missing file: /usr/share/terminfo/67/gnome-256color from package terminfo
Missing file: /usr/share/terminfo/68/hurd from package terminfo
Missing file: /usr/share/terminfo/6a/jfbterm from package terminfo
Missing file: /usr/share/terminfo/6b/konsole from package terminfo
Missing file: /usr/share/terminfo/6b/konsole-256color from package terminfo
Missing file: /usr/share/terminfo/6d/mach from package terminfo
Missing file: /usr/share/terminfo/6d/mach-bold from package terminfo
Missing file: /usr/share/terminfo/6d/mach-color from package terminfo
Missing file: /usr/share/terminfo/6d/mach-gnu from package terminfo
Missing file: /usr/share/terminfo/6d/mach-gnu-color from package terminfo
Missing file: /usr/share/terminfo/6d/mlterm from package terminfo
Missing file: /usr/share/terminfo/6d/mrxvt from package terminfo
Missing file: /usr/share/terminfo/6e/nsterm from package terminfo
Missing file: /usr/share/terminfo/70/putty from package terminfo
Missing file: /usr/share/terminfo/70/putty-256color from package terminfo
Missing file: /usr/share/terminfo/70/putty-m1 from package terminfo
Missing file: /usr/share/terminfo/70/putty-m1b from package terminfo
Missing file: /usr/share/terminfo/70/putty-m2 from package terminfo
Missing file: /usr/share/terminfo/70/putty-noapp from package terminfo
Missing file: /usr/share/terminfo/70/putty-sco from package terminfo
Missing file: /usr/share/terminfo/70/putty-vt100 from package terminfo
Missing file: /usr/share/terminfo/70/pcansi from package terminfo
Missing file: /usr/share/terminfo/72/rxvt from package terminfo
Missing file: /usr/share/terminfo/72/rxvt-16color from package terminfo
Missing file: /usr/share/terminfo/72/rxvt-256color from package terminfo
Missing file: /usr/share/terminfo/72/rxvt-88color from package terminfo
Missing file: /usr/share/terminfo/72/rxvt-basic from package terminfo
Missing file: /usr/share/terminfo/72/rxvt-color from package terminfo
Missing file: /usr/share/terminfo/72/rxvt-cygwin from package terminfo
Missing file: /usr/share/terminfo/72/rxvt-cygwin-native from package terminfo
Missing file: /usr/share/terminfo/72/rxvt-unicode from package terminfo
Missing file: /usr/share/terminfo/72/rxvt-xpm from package terminfo
Missing file: /usr/share/terminfo/73/screen from package terminfo
Missing file: /usr/share/terminfo/73/screen-16color from package terminfo
Missing file: /usr/share/terminfo/73/screen-256color from package terminfo
Missing file: /usr/share/terminfo/73/screen.Eterm from package terminfo
Missing file: /usr/share/terminfo/73/screen.gnome from package terminfo
Missing file: /usr/share/terminfo/73/screen.konsole from package terminfo
Missing file: /usr/share/terminfo/73/screen.konsole-256color from package terminfo
Missing file: /usr/share/terminfo/73/screen.linux from package terminfo
Missing file: /usr/share/terminfo/73/screen.linux-m1 from package terminfo
Missing file: /usr/share/terminfo/73/screen.linux-m1b from package terminfo
Missing file: /usr/share/terminfo/73/screen.linux-m2 from package terminfo
Missing file: /usr/share/terminfo/73/screen.minitel1 from package terminfo
Missing file: /usr/share/terminfo/73/screen.minitel1-nb from package terminfo
Missing file: /usr/share/terminfo/73/screen.minitel12-80 from package terminfo
Missing file: /usr/share/terminfo/73/screen.minitel1b from package terminfo
Missing file: /usr/share/terminfo/73/screen.minitel1b-80 from package terminfo
Missing file: /usr/share/terminfo/73/screen.minitel1b-nb from package terminfo
Missing file: /usr/share/terminfo/73/screen.minitel2-80 from package terminfo
Missing file: /usr/share/terminfo/73/screen.mlterm from package terminfo
Missing file: /usr/share/terminfo/73/screen.mlterm-256color from package terminfo
Missing file: /usr/share/terminfo/73/screen.mrxvt from package terminfo
Missing file: /usr/share/terminfo/73/screen.putty from package terminfo
Missing file: /usr/share/terminfo/73/screen.putty-256color from package terminfo
Missing file: /usr/share/terminfo/73/screen.putty-m1 from package terminfo
Missing file: /usr/share/terminfo/73/screen.putty-m1b from package terminfo
Missing file: /usr/share/terminfo/73/screen.putty-m2 from package terminfo
Missing file: /usr/share/terminfo/73/screen.rxvt from package terminfo
Missing file: /usr/share/terminfo/73/screen.teraterm from package terminfo
Missing file: /usr/share/terminfo/73/screen.vte from package terminfo
Missing file: /usr/share/terminfo/73/screen.vte-256color from package terminfo
Missing file: /usr/share/terminfo/73/screen.xterm-256color from package terminfo
Missing file: /usr/share/terminfo/73/screen.xterm-new from package terminfo
Missing file: /usr/share/terminfo/73/screen.xterm-r6 from package terminfo
Missing file: /usr/share/terminfo/73/screen.xterm-xfree86 from package terminfo
Missing file: /usr/share/terminfo/73/st from package terminfo
Missing file: /usr/share/terminfo/73/st-16color from package terminfo
Missing file: /usr/share/terminfo/73/st-256color from package terminfo
Missing file: /usr/share/terminfo/73/sun from package terminfo
Missing file: /usr/share/terminfo/74/teraterm from package terminfo
Missing file: /usr/share/terminfo/74/teraterm2.3 from package terminfo
Missing file: /usr/share/terminfo/74/tmux from package terminfo
Missing file: /usr/share/terminfo/74/tmux-256color from package terminfo
Missing file: /usr/share/terminfo/76/vte from package terminfo
Missing file: /usr/share/terminfo/76/vte-256color from package terminfo
Missing file: /usr/share/terminfo/76/vwmterm from package terminfo
Missing file: /usr/share/terminfo/77/wsvt25 from package terminfo
Missing file: /usr/share/terminfo/77/wsvt25m from package terminfo
Missing file: /usr/share/terminfo/78/xfce from package terminfo
Missing file: /usr/share/terminfo/78/xterm from package terminfo
Missing file: /usr/share/terminfo/78/xterm-1002 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-1003 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-1005 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-1006 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-16color from package terminfo
Missing file: /usr/share/terminfo/78/xterm-24 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-256color from package terminfo
Missing file: /usr/share/terminfo/78/xterm-88color from package terminfo
Missing file: /usr/share/terminfo/78/xterm-8bit from package terminfo
Missing file: /usr/share/terminfo/78/xterm-basic from package terminfo
Missing file: /usr/share/terminfo/78/xterm-bold from package terminfo
Missing file: /usr/share/terminfo/78/xterm-color from package terminfo
Missing file: /usr/share/terminfo/78/xterm-hp from package terminfo
Missing file: /usr/share/terminfo/78/xterm-new from package terminfo
Missing file: /usr/share/terminfo/78/xterm-nic from package terminfo
Missing file: /usr/share/terminfo/78/xterm-noapp from package terminfo
Missing file: /usr/share/terminfo/78/xterm-old from package terminfo
Missing file: /usr/share/terminfo/78/xterm-pcolor from package terminfo
Missing file: /usr/share/terminfo/78/xterm-r5 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-r6 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-sco from package terminfo
Missing file: /usr/share/terminfo/78/xterm-sun from package terminfo
Missing file: /usr/share/terminfo/78/xterm-utf8 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-vt220 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-vt52 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-x10mouse from package terminfo
Missing file: /usr/share/terminfo/78/xterm-x11hilite from package terminfo
Missing file: /usr/share/terminfo/78/xterm-x11mouse from package terminfo
Missing file: /usr/share/terminfo/78/xterm-xf86-v32 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-xf86-v33 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-xf86-v333 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-xf86-v40 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-xf86-v43 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-xf86-v44 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-xfree86 from package terminfo
Missing file: /usr/share/terminfo/78/xterm-xi from package terminfo
terminfo                  6.0-11.20170617     Incomplete
tzcode                    2016j-1             OK
tzdata                    2017b-1             OK
util-linux                2.25.2-2            OK
vim-minimal               8.0.1052-1          OK
which                     2.20-2              OK
xz                        5.2.3-1             OK
zlib0                     1.2.11-1            OK
Use -h to see help about each section

[-- Attachment #3: cygwin_install.txt --]
[-- Type: text/plain, Size: 5853 bytes --]

##########################################################################
####  STEP #0 = Install Cygwin and OpenSSH Files
##########################################################################
1) Download cygwin  & install / extract files 
2) Note always run all terminals as Administrator when doing the 
   instructions below


##########################################################################
####  STEP #1 = Create a Windows Users, Groups and User Directories
##########################################################################
1) For Example, create windows users sftpuser01, sftpuser02, sftpuser03
2) For Example, create windows group sftp_group
3) Place users in the sftp_group
4) Under windows create the Folder C:\SFTP_ROOT
5) Create a folder for each user, in my case its
   a) C:\SFTP_ROOT\sftpuser01
   b) C:\SFTP_ROOT\sftpuser02
   c) C:\SFTP_ROOT\sftpuser03



##########################################################################
####  STEP #2 = Open Cygwin Terminal Shell install SSH
##########################################################################
1) In the Cygwin Terminal Shell type
   export CYGWIN='ntsec tty'
   chmod 0755 /var
   ssh-host-config

Answers to the questions when prompted for from ssh-host-config
===================================================================
a) should strictmodes be used?  no
b) Should privilege separation be used? yes
c) New local account 'sshd'?  yes
d) do you want to install sshd as a service? yes
e) Enter the value of CYGWIN daemon?  sshd
f) do you want to use a different name? no
g) Create a new privileged user account 'cyg_server'?  yes



##########################################################################
####  STEP #3 = Create password and Group file
##########################################################################
1) Create the Password File and Group File, in the CygWin Termina type
   mkgroup > /etc/group 
   #for local users 
   mkpasswd -cl > /etc/passwd 
   #for domain users
   #mkpasswd -d > /etc/passwd 
   chmod +rw /etc/group
   chmod +rw /etc/passwd


##########################################################################
####  STEP #4 = Edit the FSTAB File system table
##########################################################################
1) Some FSTAB Entries for Your Reference
   http://cygwin.com/cygwin-ug-net/using.html#mount-table

2) Use these entries 
C:/cygwin64 / ntfs override,binary,noacl 0 0
C:/SFTP_ROOT /home ntfs override,binary,noacl 0 0
C:/cygwin64/bin /usr/bin ntfs override,binary,noacl 0 0
C:/cygwin64/lib /usr/lib ntfs override,binary,noacl 0 0
C:/cygwin64/etc/terminfo /usr/share/terminfo ntfs override,binary,noacl 0 0


##########################################################################
####  STEP #5 = Change the nsswitch.conf file
##########################################################################
1) This allows only users in the passwd file to login, otherwise if you
   specify "db" it allows users in the Active Directory to log in also

If you want User Login Access to be soley Controlled by PASSWD file not Active Directory
edit the /etc/nsswitch.conf
===========================================================================================
# /etc/nsswitch.conf
#
#    This file is read once by the first process in a Cygwin process tree.
#    To pick up changes, restart all Cygwin processes.  For a description
#    see https://cygwin.com/cygwin-ug-net/ntsec.html#ntsec-mapping-nsswitch
#
# Defaults:
# passwd:   files db
# group:    files db
# db_enum:  cache builtin
# db_home:  /home/%U
# db_shell: /bin/bash
# db_gecos: <empty>

passwd:   files
group:    files


##########################################################################
####  STEP #6 = Now Start the Service
##########################################################################
1) Start the Service
net stop sshd
net start sshd
netstat -a

2) Make sure to change the Firewall to allow for port 22



##########################################################################
####  STEP #7 = Restrict users to home dir
##########################################################################
0) Allow edit to sshd_config in cygwin terminal
chmod 777 /etc/sshd_config

1) Restrict users to home direct, edit the /etc/sshd_config add the lines below
   a) comment out
#Subsystem	sftp	/usr/sbin/sftp-server

   b) paste below the subsystem and match group
Subsystem sftp internal-sftp

Match group sftp_group
    ChrootDirectory /home/%u
    X11Forwarding no
    AllowTcpForwarding no
    ForceCommand internal-sftp

2) Edit the /etc/passwd file for the user "cyg_server" give it the root id of 0
   this is necessary for restricting the user to their own home directory
   cyg_server:*:0

3) Append these to /etc/fstab file, this will hid the /cygdrive and /dev folder 
   after you have restricted the user to the /home directory
/dev /null none bind
none / cygdrive user 0 0

4) Go into Cygwin Terminal assign cyg_server /home this is required
   for the restricting of the user to the home directory
chown cyg_server /home
chmod 0755 /home

5) Start the Service
net stop sshd
net start sshd




##########################################################################
####  OTHER Commands
##########################################################################
In the DOS Command Shell
============================
net stop sshd
net start sshd
netstat -a

Commands to remove the service in Cygwin
Run as Admin
==========================================
cygrunsrv -R sshd 

Commands to remove the service in DOS
Run as Admin
==========================================
SC delete sshd





[-- Attachment #4: Type: text/plain, Size: 219 bytes --]


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ssh keys not working after server crash
  2017-10-18 11:45 ` ssh keys not working after server crash Mike Adkins
@ 2017-10-20 17:36   ` Andrew Schulman
  2017-10-20 18:57     ` Erik Soderquist
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Schulman @ 2017-10-20 17:36 UTC (permalink / raw)
  To: cygwin

> Attached are the instructions I used about a year ago to install and itÂ’s been working fine until about 3 weeks ago.  The server crashed (due to MS patches I believe) and when it came up the system didnÂ’t look right..  I installed syslog-ng to see if it would help me get some logging.
> 
> Prior to the crash, users were restricted to their home directories..  Now I see dev in the folder list even though it was hidden before and fstab was not changed.
> According to the instructions I used to install, /home was to be owned by cyg_server, but it shows as owned by Administrator now.  I suspect a permission problem I am having with ssh keys not working..
> 
> 2017-10-11 19:30:04, 00001: Session(0AC80001): SENT : USERAUTH_REQUEST [none]
> 2017-10-11 19:30:04, 00001: Session(0AC80001): RECV : USERAUTH_FAILURE, continuations [publickey,password,keyboard-interactive]
> 2017-10-11 19:30:05, 00001: Session(0AC80001): SENT : USERAUTH_REQUEST [publickey (ssh-rsa) - unsigned,fingerprint (SHA-2 hash): 57:ed:24:74:ce:88:71:a8:15:ae:72:8a:dd:42:be:b6:76:8c:f2:65:f8:1b:41:29:92:95:63:1d:24:b4:d5:85]
> 2017-10-11 19:30:05, 00001: Session(0AC80001): SENT : USERAUTH_REQUEST [publickey (ssh-rsa) - unsigned,fingerprint (SHA-1 hash): 33:f2:36:9c:2f:45:7e:87:74:fb:d5:6e:ca:44:e6:99:03:53:80:c6]
> 2017-10-11 19:30:05, 00001: Session(0AC80001): SENT : USERAUTH_REQUEST [publickey (ssh-rsa) - unsigned,fingerprint (MD5 hash): ba:b7:6c:0b:88:87:74:c6:a0:eb:e5:bd:06:bb:53:10]
> 2017-10-11 19:30:05, 00001: Session(0AC80001): RECV : USERAUTH_FAILURE, continuations [publickey,password,keyboard-interactive]
> 2017-10-11 19:30:05, 00001: Session(0AC80001): SEND: Disconnect packet: The user canceled authentication.
> 
> Cygcheck attached.

Not sure what your trouble is. The client's output of ssh -vv when the
authentication fails might help to debug it.

If sshd can't read the client's public key, then for sure that would cause
the authentication to fail. I don't have sshd installed on any of the hosts
I can get to right now, but maybe someone who does could post their output
of 

ls -ld ~ ~/.ssh ~/.ssh/authorized_keys

so you could compare your permissions to theirs.

One thing to try is to rerun ssh-host-config (from an admin shell I
believe).

Andrew


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: ssh keys not working after server crash
  2017-10-20 17:36   ` Andrew Schulman
@ 2017-10-20 18:57     ` Erik Soderquist
  0 siblings, 0 replies; 3+ messages in thread
From: Erik Soderquist @ 2017-10-20 18:57 UTC (permalink / raw)
  To: cygwin

On Fri, Oct 20, 2017 at 1:36 PM, Andrew Schulman  wrote:
> maybe someone who does could post their output
> of
>
> ls -ld ~ ~/.ssh ~/.ssh/authorized_keys
>
> so you could compare your permissions to theirs.

my results:

username@computername /tmp
$ ls -ld ~ ~/.ssh ~/.ssh/authorized_keys
drwxr-xr-x+ 1 username Domain Users    0 Oct 20 10:14 /home/username
drwx------+ 1 username Domain Users    0 Sep  7 15:44 /home/username/.ssh
-rw-------  1 username Domain Users 2271 Jun  2  2016
/home/username/.ssh/authorized_keys

username@computername /tmp
$

-- Erik

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-10-20 18:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <035e01d34806$45ab1540$d1013fc0$@gmail.com>
2017-10-18 11:45 ` ssh keys not working after server crash Mike Adkins
2017-10-20 17:36   ` Andrew Schulman
2017-10-20 18:57     ` Erik Soderquist

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