Message-Id: <200411300123.iAU1NwpL003949@delorie.com> Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com From: "David Christensen" To: "'Cygwin List'" Subject: RE: sshd broken on reboot Date: Mon, 29 Nov 2004 17:23:49 -0800 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_0000_01C4D638.310CC690" In-Reply-To: <6.2.0.14.0.20041128233303.046cdd98@pop.prospeed.net> X-IsSubscribed: yes ------=_NextPart_000_0000_01C4D638.310CC690 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Larry Hall wrote: > so now you want to run your server in debug mode, It works in debug mode. Please see attached console sessions. Note the lines "Server will not fork when running in debugging mode" and "3 [main] sshd 1044 fork_copy: linked dll data/bss pass 0 failed, 0x3DB000..0x3DB050, done 0, windows pid 3916, Win32 error 487". It's failing on fork(), so debug mode won't help (?). David ------=_NextPart_000_0000_01C4D638.310CC690 Content-Type: text/plain; name="sshd-session-debug.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="sshd-session-debug.txt" dpchrist AT p42800e:~$ cat /var/log/sshd.log debug1: sshd version OpenSSH_3.9p1 debug1: private host key: #0 type 0 RSA1 debug1: read PEM private key done: type RSA debug1: private host key: #1 type 1 RSA debug1: read PEM private key done: type DSA debug1: private host key: #2 type 2 DSA debug1: rexec_argv[0]=3D'/usr/sbin/sshd' debug1: rexec_argv[1]=3D'-D' debug1: rexec_argv[2]=3D'-d' debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. Generating 768 bit RSA key. RSA key generation complete. dpchrist AT p42800e:~$ ssh localhost dpchrist AT localhost's password: Last login: Mon Nov 29 16:52:20 2004 from localhost Environment: ALLUSERSPROFILE=3DC:\Documents and Settings\All Users COMMONPROGRAMFILES=3DC:\Program Files\Common Files COMPUTERNAME=3DP42800E COMSPEC=3DC:\WINDOWS\system32\cmd.exe CYGWIN=3Dntsec FP_NO_HOST_CHECK=3DNO HOME=3D/home/dpchrist NUMBER_OF_PROCESSORS=3D2 OS=3DWindows_NT PATH=3D/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDO= WS/Syst em32/Wbem:/bin PATHEXT=3D.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH PROCESSOR_ARCHITECTURE=3Dx86 PROCESSOR_IDENTIFIER=3Dx86 Family 15 Model 3 Stepping 3, GenuineIntel PROCESSOR_LEVEL=3D15 PROCESSOR_REVISION=3D0303 PROGRAMFILES=3DC:\Program Files SYSTEMDRIVE=3DC: SYSTEMROOT=3DC:\WINDOWS TEMP=3D/cygdrive/c/WINDOWS/TEMP TERM=3Dcygwin TMP=3D/cygdrive/c/WINDOWS/TEMP USERPROFILE=3DC:\Documents and Settings\LocalService WINDIR=3DC:\WINDOWS TZ=3DPST8PST7,M4.1.0/2,M10.5.0/2 USER=3Ddpchrist LOGNAME=3Ddpchrist MAIL=3D/var/spool/mail/dpchrist SHELL=3D/bin/bash SSH_CLIENT=3D127.0.0.1 1039 22 SSH_CONNECTION=3D127.0.0.1 1039 127.0.0.1 22 SSH_TTY=3D/dev/tty0 dpchrist AT p42800e:~$ exit logout Connection to localhost closed. dpchrist AT p42800e:~$ cat /var/log/sshd.log debug1: sshd version OpenSSH_3.9p1 debug1: private host key: #0 type 0 RSA1 debug1: read PEM private key done: type RSA debug1: private host key: #1 type 1 RSA debug1: read PEM private key done: type DSA debug1: private host key: #2 type 2 DSA debug1: rexec_argv[0]=3D'/usr/sbin/sshd' debug1: rexec_argv[1]=3D'-D' debug1: rexec_argv[2]=3D'-d' debug1: Bind to port 22 on 0.0.0.0. Server listening on 0.0.0.0 port 22. Generating 768 bit RSA key. RSA key generation complete. debug1: Server will not fork when running in debugging mode. debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7 ------=_NextPart_000_0000_01C4D638.310CC690 Content-Type: text/plain; name="ssh-session-normal.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ssh-session-normal.txt" dpchrist AT p42800e:~$ cat /var/log/sshd.log dpchrist AT p42800e:~$ ssh localhost ssh_exchange_identification: Connection closed by remote host dpchrist AT p42800e:~$ cat /var/log/sshd.log 3 [main] sshd 1044 fork_copy: linked dll data/bss pass 0 failed, 0x3D= B000. .0x3DB050, done 0, windows pid 3916, Win32 error 487 dpchrist AT p42800e:~$ cygrunsrv -Q sshd Service sshd exists Type : Own Process Current State : Running Controls Accepted : Accept Stop dpchrist AT p42800e:~$ cygrunsrv -E sshd dpchrist AT p42800e:~$ cygrunsrv -S sshd dpchrist AT p42800e:~$ ssh localhost dpchrist AT localhost's password: Last login: Mon Nov 29 16:58:37 2004 from localhost ------=_NextPart_000_0000_01C4D638.310CC690 Content-Type: text/plain; charset=us-ascii -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/ ------=_NextPart_000_0000_01C4D638.310CC690--