Hi, I'm trying to use cygwin OpenSSH on WinPE 2.0 environment. I've tried the following 2 setups 1. Cygwin+OpenSSH on Windows XP SP2 2. Cygwin+OpenSSH on WinPE 2.0 Both these setups were done by running the bundled "ssh-host-config" script. I'm not using Privilege Separation and also for Setup#2, I'm not using the "sshd_server" for now. However, I've tried both the options a. Selectively giving inputs to the "ssh-host-config". Result: The service starts correctly (with net start sshd). b. Running "ssh-host-config -y" (and then creating the "sshd_server" user). Result: The sshd service doesn't start (gives error 1068, service could not start because dependency services failed to start). Now, to connect to both these setups, I'm using the bundled ssh client and a Java program, which uses a third-party SSH libraries (Maverick). For Setup#1, both programs work fine. For Setup#2, following happens 1. Option#a: ssh client can connect, but the Java program can't. It receives the following error: Exit code: 255 setreuid 500/544: No such process 2. Option#b: The sshd service doesn't start. For Setup#2, I did try various options and in particular the steps mentioned in multiple cygwing mailing list threads to run "ssh-host-config -y" .
I've attached two cygcheck output files 1. cygcheck_without_sshd_server: This is the one with Setup#2, option#a. 2. cygcheck_with_sshd_server: This is the one with Setup#2, option#b. Note: In both these cygcheck runs, it complained about 'id' program and some other cygwin utils not found. However, I've verified that these are in the system path as well as in the path of the DOS prompt from where I ran cygcheck. My preference would be to get things working as recommended in most cygwin setups (using "ssh-host-config -y", which is option#b in my case). However, if someone can help me get either options working that would be great. Thanks, - Nitin
Cygwin Configuration Diagnostics Current System Time: Sat Mar 08 22:50:16 2008 Windows Longhorn/Vista (not yet supported!) Ver 6.0 Build 6000 Path: X:\windows\system32 X:\windows X:\windows\System32\Wbem X:\OpenSSH\bin SysDir: X:\windows\system32 WinDir: X:\windows CYGWIN = '"ntsec tty"' Path = 'X:\windows\system32;X:\windows;X:\windows\System32\Wbem;X:\OpenSSH\bin' ALLUSERSPROFILE = 'X:\ProgramData' CommonProgramFiles = 'x:\Program Files\Common Files' COMPUTERNAME = 'MINWINPC' ComSpec = 'X:\windows\system32\cmd.exe' CYGWIN_HOME = 'X:\OpenSSH' FP_NO_HOST_CHECK = 'NO' NUMBER_OF_PROCESSORS = '1' OS = 'Windows_NT' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' PROCESSOR_ARCHITECTURE = 'x86' PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 13 Stepping 8, GenuineIntel' PROCESSOR_LEVEL = '6' PROCESSOR_REVISION = '0d08' ProgramData = 'X:\ProgramData' ProgramFiles = 'x:\Program Files' PROMPT = '$P$G' PUBLIC = 'X:\Users\Public' SystemDrive = 'X:' SystemRoot = 'X:\windows' TEMP = 'X:\windows\TEMP' TMP = 'X:\windows\TEMP' USERNAME = 'SYSTEM' USERPROFILE = 'X:\windows\system32\config\systemprofile' windir = 'X:\windows' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = '/cygdrive' cygdrive flags = 0x00000022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 'X:\OpenSSH' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home (default) = 'X:\Users' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 'X:\OpenSSH/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = 'X:\OpenSSH/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options (default) = '' a: fd N/A N/A x: hd NTFS 26Mb 10% CP CS UN PA FC Boot y: net NTFS 15001Mb 82% CP CS UN PA FC X:\OpenSSH / system binmode X:\Users /home system binmode X:\OpenSSH/bin /usr/bin system binmode X:\OpenSSH/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Not Found: awk Not Found: bash Not Found: cat Not Found: cp Not Found: cpp (good!) Not Found: crontab Not Found: find Not Found: gcc Not Found: gdb Not Found: grep Not Found: kill Not Found: ld Not Found: ls Not Found: make Not Found: mv Not Found: patch Not Found: perl Not Found: rm Not Found: sed Not Found: ssh Not Found: sh Not Found: tar Not Found: test Not Found: vi Not Found: vim 7k 2003/10/19 X:\OpenSSH\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0 "cygcrypt-0.dll" v0.0 ts=2003/10/18 23:57 1059k 2007/10/19 X:\OpenSSH\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto-0.9.8.dll" v0.0 ts=2007/10/19 3:45 976k 2006/10/22 X:\OpenSSH\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0 "cygiconv-2.dll" v0.0 ts=2006/10/22 15:44 31k 2005/11/20 X:\OpenSSH\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0 "cygintl-3.dll" v0.0 ts=2005/11/19 18:04 31k 2006/10/23 X:\OpenSSH\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0 "cygintl-8.dll" v0.0 ts=2006/10/22 16:12 20k 2006/12/21 X:\OpenSSH\bin\cygminires.dll - os=4.0 img=1.1 sys=4.0 "cygminires.dll" v0.0 ts=2006/12/20 21:07 237k 2006/11/15 X:\OpenSSH\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0 "cygncurses-8.dll" v0.0 ts=2006/11/14 23:02 133k 2007/06/27 X:\OpenSSH\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcre-0.dll" v0.0 ts=2007/6/26 19:49 22k 2002/06/09 X:\OpenSSH\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0 "cygpopt-0.dll" v0.0 ts=2002/6/8 21:45 155k 2008/01/04 X:\OpenSSH\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0 "cygreadline6.dll" v0.0 ts=2008/1/3 19:31 65k 2006/10/16 X:\OpenSSH\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2006/10/15 17:10 1829k 2007/12/14 X:\OpenSSH\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2007/12/14 10:22 Cygwin DLL version info: DLL version: 1.5.25 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 156 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Fri Dec 14 19:21:07 CET 2007 CVS tag: cr-0x5f1 Shared id: cygwin1S4 Can't find the cygrunsrv utility, skipping services check. Cygwin Package Information No setup information found Use -h to see help about each section
Cygwin Configuration Diagnostics Current System Time: Sat Mar 08 22:50:16 2008 Windows Longhorn/Vista (not yet supported!) Ver 6.0 Build 6000 Path: X:\windows\system32 X:\windows X:\windows\System32\Wbem X:\OpenSSH\bin SysDir: X:\windows\system32 WinDir: X:\windows CYGWIN = '"ntsec tty"' Path = 'X:\windows\system32;X:\windows;X:\windows\System32\Wbem;X:\OpenSSH\bin' ALLUSERSPROFILE = 'X:\ProgramData' CommonProgramFiles = 'x:\Program Files\Common Files' COMPUTERNAME = 'MINWINPC' ComSpec = 'X:\windows\system32\cmd.exe' CYGWIN_HOME = 'X:\OpenSSH' FP_NO_HOST_CHECK = 'NO' NUMBER_OF_PROCESSORS = '1' OS = 'Windows_NT' PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC' PROCESSOR_ARCHITECTURE = 'x86' PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 13 Stepping 8, GenuineIntel' PROCESSOR_LEVEL = '6' PROCESSOR_REVISION = '0d08' ProgramData = 'X:\ProgramData' ProgramFiles = 'x:\Program Files' PROMPT = '$P$G' PUBLIC = 'X:\Users\Public' SystemDrive = 'X:' SystemRoot = 'X:\windows' TEMP = 'X:\windows\TEMP' TMP = 'X:\windows\TEMP' USERNAME = 'SYSTEM' USERPROFILE = 'X:\windows\system32\config\systemprofile' windir = 'X:\windows' HKEY_CURRENT_USER\Software\Cygnus Solutions HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2 HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2 (default) = '/cygdrive' cygdrive flags = 0x00000022 HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/ (default) = 'X:\OpenSSH' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/home (default) = 'X:\Users' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin (default) = 'X:\OpenSSH/bin' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib (default) = 'X:\OpenSSH/lib' flags = 0x0000000a HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options (default) = '' a: fd N/A N/A x: hd NTFS 26Mb 10% CP CS UN PA FC Boot y: net NTFS 15001Mb 82% CP CS UN PA FC X:\OpenSSH / system binmode X:\Users /home system binmode X:\OpenSSH/bin /usr/bin system binmode X:\OpenSSH/lib /usr/lib system binmode . /cygdrive system binmode,cygdrive Not Found: awk Not Found: bash Not Found: cat Not Found: cp Not Found: cpp (good!) Not Found: crontab Not Found: find Not Found: gcc Not Found: gdb Not Found: grep Not Found: kill Not Found: ld Not Found: ls Not Found: make Not Found: mv Not Found: patch Not Found: perl Not Found: rm Not Found: sed Not Found: ssh Not Found: sh Not Found: tar Not Found: test Not Found: vi Not Found: vim 7k 2003/10/19 X:\OpenSSH\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0 "cygcrypt-0.dll" v0.0 ts=2003/10/18 23:57 1059k 2007/10/19 X:\OpenSSH\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0 "cygcrypto-0.9.8.dll" v0.0 ts=2007/10/19 3:45 976k 2006/10/22 X:\OpenSSH\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0 "cygiconv-2.dll" v0.0 ts=2006/10/22 15:44 31k 2005/11/20 X:\OpenSSH\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0 "cygintl-3.dll" v0.0 ts=2005/11/19 18:04 31k 2006/10/23 X:\OpenSSH\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0 "cygintl-8.dll" v0.0 ts=2006/10/22 16:12 20k 2006/12/21 X:\OpenSSH\bin\cygminires.dll - os=4.0 img=1.1 sys=4.0 "cygminires.dll" v0.0 ts=2006/12/20 21:07 237k 2006/11/15 X:\OpenSSH\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0 "cygncurses-8.dll" v0.0 ts=2006/11/14 23:02 133k 2007/06/27 X:\OpenSSH\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0 "cygpcre-0.dll" v0.0 ts=2007/6/26 19:49 22k 2002/06/09 X:\OpenSSH\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0 "cygpopt-0.dll" v0.0 ts=2002/6/8 21:45 155k 2008/01/04 X:\OpenSSH\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0 "cygreadline6.dll" v0.0 ts=2008/1/3 19:31 65k 2006/10/16 X:\OpenSSH\bin\cygz.dll - os=4.0 img=1.0 sys=4.0 "cygz.dll" v0.0 ts=2006/10/15 17:10 1829k 2007/12/14 X:\OpenSSH\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0 "cygwin1.dll" v0.0 ts=2007/12/14 10:22 Cygwin DLL version info: DLL version: 1.5.25 DLL epoch: 19 DLL bad signal mask: 19005 DLL old termios: 5 DLL malloc env: 28 API major: 0 API minor: 156 Shared data: 4 DLL identifier: cygwin1 Mount registry: 2 Cygnus registry name: Cygnus Solutions Cygwin registry name: Cygwin Program options name: Program Options Cygwin mount registry name: mounts v2 Cygdrive flags: cygdrive flags Cygdrive prefix: cygdrive prefix Cygdrive default prefix: Build date: Fri Dec 14 19:21:07 CET 2007 CVS tag: cr-0x5f1 Shared id: cygwin1S4 Can't find the cygrunsrv utility, skipping services check. Cygwin Package Information No setup information found Use -h to see help about each section
-- 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/