This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: OpenSSH_3.9p1 and Could not load host key


At 12:02 PM 3/29/2005, you wrote:
> I used the method from
>
><http://cygwin.com/ml/cygwin/2004-08/msg01132.html>
>
>A piece of code I would have never thought of.
>
>On the windows XP system the output was
>
>bash: /etc/profile: Permission denied
>bash-2.05b$ /usr/sbin/sshd -D -d -d -d
>debug2: load_server_config: filename /etc/sshd_config
>debug2: load_server_config: done config len = 203
>debug2: parse_server_config: config /etc/sshd_config len 203
>debug1: sshd version OpenSSH_3.9p1
>debug1: private host key: #0 type 0 RSA1
>debug3: Not a RSA1 key file /etc/ssh_host_rsa_key.
>debug1: read PEM private key done: type RSA
>debug1: private host key: #1 type 1 RSA
>debug3: Not a RSA1 key file /etc/ssh_host_dsa_key.
>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: rexec_argv[3]='-d'
>debug1: rexec_argv[4]='-d'
>debug2: fd 3 setting O_NONBLOCK
>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.
>debug3: fd 4 is not O_NONBLOCK
>debug1: Server will not fork when running in debugging mode.
>debug3: send_rexec_state: entering fd = 7 config len 203
>debug3: ssh_msg_send: type 0
>debug3: send_rexec_state: done
>debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7
>
>bash-2.05b$
>bash-2.05b$ cat ss
>
>------ and on the OpenBSD system
>
>Last login: Tue Mar 29 11:49:52 2005 from gateway.thinkage.ca Fanfare!!!
>You are successfully logged in to this server!!!
>Environment:
>  ALLUSERSPROFILE=C:\Documents and Settings\All Users
>  AVENGINE=C:\PROGRA~1\COMPUT~1\SCANEN~1
>  COMMONPROGRAMFILES=C:\Program Files\Common Files
>  COMPUTERNAME=WHOOPS
>  COMSPEC=C:\WINDOWS\system32\cmd.exe
>  CYGWIN_ROOT=c:
>  EXCHICONS=C:\Program Files\Exchsrvr\bin\maildsmx.dll
>  FP_NO_HOST_CHECK=NO
>  HOME=/pjf
>  INCLUDE=C:\Program Files\Microsoft Visual Studio .NET
>2003\SDK\v1.1\include\
>  INOCULAN=C:\PROGRA~1\COMPUT~1\INOCUL~1
>  LIB=C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\Lib\
>  NUMBER_OF_PROCESSORS=2
>  OS=Windows_NT
>  PATH=/Program Files/Legato/nsr/bin:/Program Files/Windows Resource
>Kits/Tools/:/WINDOWS/system32:/WINDOWS:/WINDOWS/System32/Wbem:/Program
>Files/Support Tools/:/Program Files/ATI Technologies/ATI Contr
>  PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>  PROCESSOR_ARCHITECTURE=x86
>  PROCESSOR_IDENTIFIER=x86 Family 15 Model 2 Stepping 9, GenuineIntel
>  PROCESSOR_LEVEL=15
>  PROCESSOR_REVISION=0209
>  PROGRAMFILES=C:\Program Files
>  PWD=/WINDOWS/system32
>  SHLVL=1
>  SYSTEMDRIVE=C:
>  SYSTEMROOT=C:\WINDOWS
>  TEMP=/WINDOWS/TEMP
>  TERM=xterm
>  TMP=/WINDOWS/TEMP
>  USERPROFILE=C:\Documents and Settings\NetworkService
>  VS71COMNTOOLS=C:\Program Files\Microsoft Visual Studio .NET
>2003\Common7\Tools\
>  WINDIR=C:\WINDOWS
>  _=/usr/sbin/sshd
>  TZ=EST5EST4,M4.1.0/2,M10.5.0/2
>  USER=pjf
>  LOGNAME=pjf
>  MAIL=/var/spool/mail/pjf
>  SHELL=/bin/bash
>  SSH_CLIENT=192.102.11.1 19942 22
>  SSH_CONNECTION=192.102.11.1 19942 192.102.11.8 22
>  SSH_TTY=/dev/tty0
>  DISPLAY=localhost:10.0
>Running /usr/X11R6/bin/xauth remove unix:10.0
>/usr/X11R6/bin/xauth add unix:10.0 MIT-MAGIC-COOKIE-1
>dc859ebcea010616dfd2ba9357105488
>/usr/X11R6/bin/xauth: not found
>bash.exe: warning: could not find /tmp, please create!
>-bash: /etc/profile: Permission denied
>-bash: /pjf/.bash_profile: Permission denied
>-bash-2.05b$ 


OK, so this worked, other than the annoying "permission denied" and similar
complaints.  You might try putting "notraverse" in your CYGWIN (system) 
environment variable to see if that helps.  I'm not really that sure why
you're seeing these problems though.  Looks like a separate issue though.
Checking the output of 'cygcheck -srv' once you've logged in with 'ssh' 
might be instructive though.


--
Larry Hall                              http://www.rfk.com
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
838 Washington Street                   (508) 893-9889 - FAX
Holliston, MA 01746                     


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]