Mail Archives: cygwin/2007/07/20/14:08:34
--Apple-Mail-16-489256226
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
delsp=yes;
format=flowed
On Jul 20, 2007, at 10:37 AM, Dave Korn wrote:
> On 20 July 2007 16:25, Michael Grubb wrote:
>
>> Ok,
>> I'm about at wits end on this one I can't seem to figure out what's
>> going on.
BTW, this was an "I'm frustrated and pulling my hair out please
help", not an "I'm angry this is broke, fix it".
>> I've had the openssh server running on the same version of windows
>> (Windows XP Pro SP2 fully patched) for quite some time.
>> The first time I installed it using the instructions at http://
>> pigtail.net/LRP/printsrv/cygwin-sshd.html which worked beautifully.
>> This time however, I'm having issues. After following the
>> instructions I was first presented with issues dealing with the
>> privilege separation feature.
>> I've got those worked out and now have a more serious trouble that
>> I'm not sure where to proceed from here.
>
> Ok, so you followed a bunch of non-standard and unsupported
> instructions to
> install sshd, then something happened which you don't tell us
> anything about
> except that it was to do with privsep, then you did some other
> stuff to it
> that you also don't tell us about it, but apparently it solved
> whatever it was
> that was the problem that you didn't tell us about, and now it
> doesn't work.
> So the answer is "It could be a problem in one of the bits you
> didn't tell us
> about". Or it might not.
To clarify the OP:
I had this configuration working on a previous installation. To my
knowledge they were the same versions of cygwin/openssh as what I'm
running now. If they weren't the same versions, it couldn't be far
off at any rate. I had to reload my OS from the ground up. I am now
getting an error regarding not able to bind to any address.
No, I did what /usr/share/doc/Cygwin/openssh.README says to do (but
took instruction from someone who actually knows how to write
configuration documentation. The contents of openssh.README is
certainly informative, but contains no true instruction. At least
not how to configure the server process in an easy to follow format.
That file says to use the ssh-host-config script, which I did. It
installed a windows service, and just as your documentation suggests
it is running sshd with the -D option (or so cygrunsrv -Q sshd
suggests). I'm sorry but if you want folks to follow your
"instructions" then perhaps you should improve them to be a bit more
instructive. As for elaborating on the privilege separation issue,
there seemed no need. I've determined through my own troubleshooting
that it isn't the culprit. Or perhaps I should say I'm no longer
getting an error message.
But, to deal with the privilege separation issues I've tried two
approaches. First, I fixed the ownerships on /var/empty to be
system.system, that halted the error messages regarding privilege
separation. Then I started getting the messages I pasted in my
original post, about not binding to any address. I took the
additional step to disable privilege separation altogether thinking
that it may be causing some "behind the scenes" problems. That
didn't help.
>
>> debug1: Bind to port 22 on 0.0.0.0.
>> Bind to port 22 on 0.0.0.0 failed: Bad address.
>> Cannot bind any address.
>>
>> I've tried explicitly adding my IP address with the ListenAddress
>> directive in the /etc/sshd_config file. I've tried altering the port
>> number to a non-privileged port.
>> I can't seem to get anything to work. I'm running the latest version
>> of cygwin from cygwin.com.
>
> Have you allowed an exception for sshd in the windows firewall?
Yes, I have added both a program and a port exception, neither of
which has caused any change.
>
>> I did download another project OpenSSH for windows, which seems to be
>> based off cygwin. It used an older version of openssh as well as the
>> cygwin DLL, I believe, as they didn't really like having each other
>> installed at the same time.
>
> Yes, that's pretty much guaranteed fatal. Have you removed this
> older
> version? Is it in the PATH settings? More vital information you
> don't seem
> to think anybody would need...
Yes, I have removed the other product from the system completely. I
have ensured that no other cygwin1.DLL file is present on the system
(aside from c:\cygwin\bin\cygwin1.dll). I did fail to mention in the
OP that I had completely removed the other product, it is no longer
causing conflicts. I included that information to show that I can
get other versions of ssh/cygwin to work just not this particular
combination on this particular installation of the OS for some reason.
Also an excerpt of one of the event log entries for the failed
service start attempt:
The following information is part of the event: sshd: PID 2700:
`sshd' service stopped, exit status: 255.
I've also attached the requested output of cygcheck -s -v -r.
>
>> So I'm not sure where the root cause of the problem lies in this
>> case.
>
> Owing to the lack of information and the vast number of unknowns
> in your
> description of the problem, neither is anyone else! If it isn't a
> firewall
> configuration issue, it could be any number of things; a good place
> to start
> would be by sending your cygcheck output as an attachment with your
> next post,
> as described at http://cygwin.com/problems.html.
>
>
> cheers,
> DaveK
> --
> Can't think of a witty .sigline today....
>
>
> --
> 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/
>
>
--Apple-Mail-16-489256226
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain;
x-mac-type=42494E41;
x-unix-mode=0644;
x-mac-creator=68446D70;
name=cygcheck.txt
Content-Disposition: attachment;
filename=cygcheck.txt
=0D
Cygwin Configuration Diagnostics=0D
Current System Time: Fri Jul 20 12:53:57 2007=0D
=0D
Windows XP Professional Ver 5.1 Build 2600 Service Pack 2=0D
=0D
Running in Terminal Service session=0D
=0D
Path: C:\cygwin\usr\local\bin=0D
C:\cygwin\bin=0D
C:\cygwin\bin=0D
C:\cygwin\usr\X11R6\bin=0D
c:\WINDOWS\system32=0D
c:\WINDOWS=0D
c:\WINDOWS\System32\Wbem=0D
C:\cygwin\bin=0D
=0D
Output from C:\cygwin\bin\id.exe (nontsec)=0D
UID: 1003(mgrubb) GID: 513(None)=0D
0(root) 513(None) 544(Administrators) 545(Users)=0D
=0D
Output from C:\cygwin\bin\id.exe (ntsec)=0D
UID: 1003(mgrubb) GID: 513(None)=0D
0(root) 513(None) 544(Administrators) 545(Users)=0D
=0D
SysDir: C:\WINDOWS\system32=0D
WinDir: C:\WINDOWS=0D
=0D
USER =3D 'mgrubb'=0D
PWD =3D '/var/log'=0D
CYGWIN =3D 'tty'=0D
HOME =3D '/home/mgrubb'=0D
MAKE_MODE =3D 'unix'=0D
=0D
HOMEPATH =3D '\Documents and Settings\mgrubb'=0D
MANPATH =3D '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'=0D
APPDATA =3D 'C:\Documents and Settings\mgrubb\Application Data'=0D
HOSTNAME =3D 'mgrubb-home'=0D
TERM =3D 'cygwin'=0D
PROCESSOR_IDENTIFIER =3D 'x86 Family 6 Model 15 Stepping 6, GenuineIntel'=
=0D
WINDIR =3D 'C:\WINDOWS'=0D
OLDPWD =3D '/usr/share/doc/Cygwin'=0D
USERDOMAIN =3D 'MGRUBB-HOME'=0D
OS =3D 'Windows_NT'=0D
ALLUSERSPROFILE =3D 'C:\Documents and Settings\All Users'=0D
!:: =3D '::\'=0D
TEMP =3D '/cygdrive/c/DOCUME~1/mgrubb/LOCALS~1/Temp'=0D
COMMONPROGRAMFILES =3D 'C:\Program Files\Common Files'=0D
USERNAME =3D 'mgrubb'=0D
PROCESSOR_LEVEL =3D '6'=0D
FP_NO_HOST_CHECK =3D 'NO'=0D
SYSTEMDRIVE =3D 'C:'=0D
USERPROFILE =3D 'C:\Documents and Settings\mgrubb'=0D
CLIENTNAME =3D 'mgrubb'=0D
PS1 =3D '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '=0D
LOGONSERVER =3D '\\MGRUBB-HOME'=0D
PROCESSOR_ARCHITECTURE =3D 'x86'=0D
!C: =3D 'C:\cygwin\bin'=0D
SHLVL =3D '1'=0D
PATHEXT =3D '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'=0D
HOMEDRIVE =3D 'C:'=0D
PROMPT =3D '$P$G'=0D
COMSPEC =3D 'C:\WINDOWS\system32\cmd.exe'=0D
TMP =3D '/cygdrive/c/DOCUME~1/mgrubb/LOCALS~1/Temp'=0D
SYSTEMROOT =3D 'C:\WINDOWS'=0D
PRINTER =3D 'Microsoft XPS Document Writer'=0D
CVS_RSH =3D '/bin/ssh'=0D
PROCESSOR_REVISION =3D '0f06'=0D
INFOPATH =3D '/usr/local/info:/usr/share/info:/usr/info:'=0D
PROGRAMFILES =3D 'C:\Program Files'=0D
NUMBER_OF_PROCESSORS =3D '2'=0D
SESSIONNAME =3D 'RDP-Tcp#1'=0D
COMPUTERNAME =3D 'MGRUBB-HOME'=0D
_ =3D '/usr/bin/cygcheck'=0D
POSIXLY_CORRECT =3D '1'=0D
=0D
HKEY_CURRENT_USER\Software\Cygnus Solutions=0D
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin=0D
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2=0D
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options=0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions=0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin=0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2=0D
(default) =3D '/cygdrive'=0D
cygdrive flags =3D 0x00000022=0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/=0D
(default) =3D 'C:\cygwin'=0D
flags =3D 0x0000000a=0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin=0D
(default) =3D 'C:\cygwin/bin'=0D
flags =3D 0x0000000a=0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib=0D
(default) =3D 'C:\cygwin/lib'=0D
flags =3D 0x0000000a=0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options=0D
=0D
c: hd NTFS 117232Mb 19% CP CS UN PA FC =0D
d: hd NTFS 2527Mb 1% CP CS UN PA FC =0D
e: cd N/A N/A =0D
=0D
C:\cygwin / system binmode=0D
C:\cygwin/bin /usr/bin system binmode=0D
C:\cygwin/lib /usr/lib system binmode=0D
. /cygdrive system binmode,cygdrive=0D
=0D
Found: C:\cygwin\bin\awk.exe=0D
Found: C:\cygwin\bin\bash.exe=0D
Found: C:\cygwin\bin\cat.exe=0D
Found: C:\cygwin\bin\cp.exe=0D
Not Found: cpp (good!)=0D
Not Found: crontab=0D
Found: C:\cygwin\bin\find.exe=0D
Not Found: gcc=0D
Not Found: gdb=0D
Found: C:\cygwin\bin\grep.exe=0D
Found: C:\cygwin\bin\kill.exe=0D
Not Found: ld=0D
Found: C:\cygwin\bin\ls.exe=0D
Not Found: make=0D
Found: C:\cygwin\bin\mv.exe=0D
Not Found: patch=0D
Not Found: perl=0D
Found: C:\cygwin\bin\rm.exe=0D
Found: C:\cygwin\bin\sed.exe=0D
Found: C:\cygwin\bin\ssh.exe=0D
Found: C:\cygwin\bin\sh.exe=0D
Found: C:\cygwin\bin\tar.exe=0D
Found: C:\cygwin\bin\test.exe=0D
Not Found: vi=0D
Found: C:\cygwin\bin\vim.exe=0D
=0D
61k 2006/11/10 C:\cygwin\bin\cygbz2-1.dll - os=3D4.0 img=3D1.0 sys=3D4.0=
=0D
"cygbz2-1.dll" v0.0 ts=3D2006/11/10 17:42=0D
7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0=0D
"cygcrypt-0.dll" v0.0 ts=3D2003/10/19 2:57=0D
1059k 2007/03/29 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=3D4.0 img=3D1.0 sy=
s=3D4.0=0D
"cygcrypto-0.9.8.dll" v0.0 ts=3D2007/3/29 5:13=0D
40k 2006/11/15 C:\cygwin\bin\cygform-8.dll - os=3D4.0 img=3D1.0 sys=3D4.=
0=0D
"cygform-8.dll" v0.0 ts=3D2006/11/15 1:06=0D
25k 2007/05/02 C:\cygwin\bin\cyghistory6.dll - os=3D4.0 img=3D1.0 sys=3D=
4.0=0D
"cyghistory6.dll" v0.0 ts=3D2007/5/1 20:01=0D
976k 2006/10/22 C:\cygwin\bin\cygiconv-2.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0=0D
"cygiconv-2.dll" v0.0 ts=3D2006/10/22 18:44=0D
37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=3D4.0 img=3D1.0 sys=3D4.=
0=0D
"cygintl-2.dll" v0.0 ts=3D2003/8/10 16:50=0D
31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=3D4.0 img=3D1.0 sys=3D4.=
0=0D
"cygintl-3.dll" v0.0 ts=3D2005/11/19 20:04=0D
31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll - os=3D4.0 img=3D1.0 sys=3D4.=
0=0D
"cygintl-8.dll" v0.0 ts=3D2006/10/22 19:12=0D
21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll - os=3D4.0 img=3D1.0 sys=3D4.=
0=0D
"cygmenu-8.dll" v0.0 ts=3D2006/11/15 1:05=0D
20k 2006/12/21 C:\cygwin\bin\cygminires.dll - os=3D4.0 img=3D1.1 sys=3D4=
.0=0D
"cygminires.dll" v0.0 ts=3D2006/12/20 23:07=0D
67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0=0D
"cygncurses++-8.dll" v0.0 ts=3D2006/11/15 1:13=0D
237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0=0D
"cygncurses-8.dll" v0.0 ts=3D2006/11/15 1:02=0D
12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll - os=3D4.0 img=3D1.0 sys=3D4=
.0=0D
"cygpanel-8.dll" v0.0 ts=3D2006/11/15 1:04=0D
119k 2007/04/25 C:\cygwin\bin\cygpcre-0.dll - os=3D4.0 img=3D1.0 sys=3D4.=
0=0D
"cygpcre-0.dll" v0.0 ts=3D2007/4/24 23:39=0D
303k 2007/04/25 C:\cygwin\bin\cygpcrecpp-0.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0=0D
"cygpcrecpp-0.dll" v0.0 ts=3D2007/4/24 23:39=0D
7k 2007/04/25 C:\cygwin\bin\cygpcreposix-0.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0=0D
"cygpcreposix-0.dll" v0.0 ts=3D2007/4/24 23:39=0D
22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=3D4.0 img=3D1.0 sys=3D4.=
0=0D
"cygpopt-0.dll" v0.0 ts=3D2002/6/9 0:45=0D
154k 2007/05/02 C:\cygwin\bin\cygreadline6.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0=0D
"cygreadline6.dll" v0.0 ts=3D2007/5/1 20:01=0D
217k 2007/03/29 C:\cygwin\bin\cygssl-0.9.8.dll - os=3D4.0 img=3D1.0 sys=
=3D4.0=0D
"cygssl-0.9.8.dll" v0.0 ts=3D2007/3/29 5:13=0D
65k 2006/10/16 C:\cygwin\bin\cygz.dll - os=3D4.0 img=3D1.0 sys=3D4.0=0D
"cygz.dll" v0.0 ts=3D2006/10/15 20:10=0D
1830k 2007/01/31 C:\cygwin\bin\cygwin1.dll - os=3D4.0 img=3D1.0 sys=3D4.0=
=0D
"cygwin1.dll" v0.0 ts=3D2007/1/31 3:58=0D
Cygwin DLL version info:=0D
DLL version: 1.5.24=0D
DLL epoch: 19=0D
DLL bad signal mask: 19005=0D
DLL old termios: 5=0D
DLL malloc env: 28=0D
API major: 0=0D
API minor: 156=0D
Shared data: 4=0D
DLL identifier: cygwin1=0D
Mount registry: 2=0D
Cygnus registry name: Cygnus Solutions=0D
Cygwin registry name: Cygwin=0D
Program options name: Program Options=0D
Cygwin mount registry name: mounts v2=0D
Cygdrive flags: cygdrive flags=0D
Cygdrive prefix: cygdrive prefix=0D
Cygdrive default prefix: =0D
Build date: Wed Jan 31 10:57:51 CET 2007=0D
CVS tag: cr-0x5f1=0D
Shared id: cygwin1S4=0D
=0D
=0D
Service : sshd=0D
Display name : CYGWIN sshd=0D
Current State : Stopped=0D
Command : /usr/sbin/sshd -D -d=0D
stdin path : /dev/null=0D
stdout path : /var/log/sshd.log=0D
stderr path : /var/log/sshd.log=0D
Environment : CYGWIN=3D"ntsec tty" =0D
Process Type : Own Process=0D
Startup : Automatic=0D
Dependencies : tcpip=0D
Account : LocalSystem=0D
=0D
=0D
Cygwin Package Information=0D
Last downloaded files to: C:\cygwin\pkg=0D
Last downloaded files from: http://mirrors.kernel.org/sourceware/cygwin=0D
=0D
Package Version=0D
_update-info-dir 00532-1=0D
alternatives 1.3.29a-1=0D
ash 20040127-3=0D
base-files 3.7-1=0D
base-passwd 2.2-1=0D
bash 3.2.17-15=0D
bzip2 1.0.3-2=0D
coreutils 6.9-3=0D
crypt 1.1-1=0D
cygrunsrv 1.17-1=0D
cygutils 1.3.1-1=0D
cygwin 1.5.24-2=0D
cygwin-doc 1.4-4=0D
editrights 1.01-1=0D
findutils 4.3.8-1=0D
gawk 3.1.5-4=0D
grep 2.5.1a-4=0D
groff 1.18.1-2=0D
gzip 1.3.12-1=0D
less 382-1=0D
libbz2_1 1.0.3-2=0D
libiconv2 1.11-1=0D
libintl2 0.12.1-3=0D
libintl3 0.14.5-1=0D
libintl8 0.15-1=0D
libncurses8 5.5-3=0D
libpcre0 7.1-1=0D
libpopt0 1.6.4-4=0D
libreadline6 5.2.4-8=0D
login 1.9-7=0D
man 1.6e-1=0D
minires 1.01-1=0D
mktemp 1.5-4=0D
openssh 4.6p1-1=0D
openssl 0.9.8e-3=0D
rebase 2.4.3-1=0D
run 1.1.10-1=0D
sed 4.1.5-2=0D
tar 1.18-1=0D
tcp_wrappers 7.6-1=0D
termcap 20050421-1=0D
terminfo 5.5_20061104-1=0D
texinfo 4.8a-1=0D
vim 7.1-1=0D
which 1.7-1=0D
zlib 1.2.3-2=0D
Use -h to see help about each section=0D
--Apple-Mail-16-489256226
Content-Transfer-Encoding: 7bit
Content-Type: text/plain;
charset=US-ASCII;
format=flowed
--Apple-Mail-16-489256226
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/
--Apple-Mail-16-489256226--
- Raw text -