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
[EMAIL PROTECTED]:~$ 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]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-D'
debug1: rexec_argv[2]='-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.
[EMAIL PROTECTED]:~$ ssh localhost
[EMAIL PROTECTED]'s password:
Last login: Mon Nov 29 16:52:20 2004 from localhost
Environment:
ALLUSERSPROFILE=C:\Documents and Settings\All Users
COMMONPROGRAMFILES=C:\Program Files\Common Files
COMPUTERNAME=P42800E
COMSPEC=C:\WINDOWS\system32\cmd.exe
CYGWIN=ntsec
FP_NO_HOST_CHECK=NO
HOME=/home/dpchrist
NUMBER_OF_PROCESSORS=2
OS=Windows_NT
PATH=/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/Syst
em32/Wbem:/bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
PROCESSOR_ARCHITECTURE=x86
PROCESSOR_IDENTIFIER=x86 Family 15 Model 3 Stepping 3, GenuineIntel
PROCESSOR_LEVEL=15
PROCESSOR_REVISION=0303
PROGRAMFILES=C:\Program Files
SYSTEMDRIVE=C:
SYSTEMROOT=C:\WINDOWS
TEMP=/cygdrive/c/WINDOWS/TEMP
TERM=cygwin
TMP=/cygdrive/c/WINDOWS/TEMP
USERPROFILE=C:\Documents and Settings\LocalService
WINDIR=C:\WINDOWS
TZ=PST8PST7,M4.1.0/2,M10.5.0/2
USER=dpchrist
LOGNAME=dpchrist
MAIL=/var/spool/mail/dpchrist
SHELL=/bin/bash
SSH_CLIENT=127.0.0.1 1039 22
SSH_CONNECTION=127.0.0.1 1039 127.0.0.1 22
SSH_TTY=/dev/tty0
[EMAIL PROTECTED]:~$ exit
logout
Connection to localhost closed.
[EMAIL PROTECTED]:~$ 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]='/usr/sbin/sshd'
debug1: rexec_argv[1]='-D'
debug1: rexec_argv[2]='-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
[EMAIL PROTECTED]:~$ cat /var/log/sshd.log
[EMAIL PROTECTED]:~$ ssh localhost
ssh_exchange_identification: Connection closed by remote host
[EMAIL PROTECTED]:~$ cat /var/log/sshd.log
3 [main] sshd 1044 fork_copy: linked dll data/bss pass 0 failed, 0x3DB000.
.0x3DB050, done 0, windows pid 3916, Win32 error 487
[EMAIL PROTECTED]:~$ cygrunsrv -Q sshd
Service sshd exists
Type : Own Process
Current State : Running
Controls Accepted : Accept Stop
[EMAIL PROTECTED]:~$ cygrunsrv -E sshd
[EMAIL PROTECTED]:~$ cygrunsrv -S sshd
[EMAIL PROTECTED]:~$ ssh localhost
[EMAIL PROTECTED]'s password:
Last login: Mon Nov 29 16:58:37 2004 from localhost
--
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/