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/


Cygwin Configuration Diagnostics
Current System Time: Fri Jul 20 12:53:57 2007

Windows XP Professional Ver 5.1 Build 2600 Service Pack 2

Running in Terminal Service session

Path:   C:\cygwin\usr\local\bin
        C:\cygwin\bin
        C:\cygwin\bin
        C:\cygwin\usr\X11R6\bin
        c:\WINDOWS\system32
        c:\WINDOWS
        c:\WINDOWS\System32\Wbem
        C:\cygwin\bin

Output from C:\cygwin\bin\id.exe (nontsec)
UID: 1003(mgrubb)   GID: 513(None)
0(root)             513(None)           544(Administrators) 545(Users)

Output from C:\cygwin\bin\id.exe (ntsec)
UID: 1003(mgrubb)   GID: 513(None)
0(root)             513(None)           544(Administrators) 545(Users)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'mgrubb'
PWD = '/var/log'
CYGWIN = 'tty'
HOME = '/home/mgrubb'
MAKE_MODE = 'unix'

HOMEPATH = '\Documents and Settings\mgrubb'
MANPATH = '/usr/local/man:/usr/share/man:/usr/man::/usr/ssl/man'
APPDATA = 'C:\Documents and Settings\mgrubb\Application Data'
HOSTNAME = 'mgrubb-home'
TERM = 'cygwin'
PROCESSOR_IDENTIFIER = 'x86 Family 6 Model 15 Stepping 6, GenuineIntel'
WINDIR = 'C:\WINDOWS'
OLDPWD = '/usr/share/doc/Cygwin'
USERDOMAIN = 'MGRUBB-HOME'
OS = 'Windows_NT'
ALLUSERSPROFILE = 'C:\Documents and Settings\All Users'
!:: = '::\'
TEMP = '/cygdrive/c/DOCUME~1/mgrubb/LOCALS~1/Temp'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
USERNAME = 'mgrubb'
PROCESSOR_LEVEL = '6'
FP_NO_HOST_CHECK = 'NO'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Documents and Settings\mgrubb'
CLIENTNAME = 'mgrubb'
PS1 = '\[\e]0;[EMAIL PROTECTED] \[\e[33m\]\w\[\e[0m\]\n\$ '
LOGONSERVER = '\\MGRUBB-HOME'
PROCESSOR_ARCHITECTURE = 'x86'
!C: = 'C:\cygwin\bin'
SHLVL = '1'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
HOMEDRIVE = 'C:'
PROMPT = '$P$G'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
TMP = '/cygdrive/c/DOCUME~1/mgrubb/LOCALS~1/Temp'
SYSTEMROOT = 'C:\WINDOWS'
PRINTER = 'Microsoft XPS Document Writer'
CVS_RSH = '/bin/ssh'
PROCESSOR_REVISION = '0f06'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info:'
PROGRAMFILES = 'C:\Program Files'
NUMBER_OF_PROCESSORS = '2'
SESSIONNAME = 'RDP-Tcp#1'
COMPUTERNAME = 'MGRUBB-HOME'
_ = '/usr/bin/cygcheck'
POSIXLY_CORRECT = '1'

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) = 'C:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = 'C:\cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = 'C:\cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Program Options

c:  hd  NTFS    117232Mb  19% CP CS UN PA FC     
d:  hd  NTFS      2527Mb   1% CP CS UN PA FC     
e:  cd             N/A    N/A                    

C:\cygwin      /          system  binmode
C:\cygwin/bin  /usr/bin   system  binmode
C:\cygwin/lib  /usr/lib   system  binmode
.              /cygdrive  system  binmode,cygdrive

Found: C:\cygwin\bin\awk.exe
Found: C:\cygwin\bin\bash.exe
Found: C:\cygwin\bin\cat.exe
Found: C:\cygwin\bin\cp.exe
Not Found: cpp (good!)
Not Found: crontab
Found: C:\cygwin\bin\find.exe
Not Found: gcc
Not Found: gdb
Found: C:\cygwin\bin\grep.exe
Found: C:\cygwin\bin\kill.exe
Not Found: ld
Found: C:\cygwin\bin\ls.exe
Not Found: make
Found: C:\cygwin\bin\mv.exe
Not Found: patch
Not Found: perl
Found: C:\cygwin\bin\rm.exe
Found: C:\cygwin\bin\sed.exe
Found: C:\cygwin\bin\ssh.exe
Found: C:\cygwin\bin\sh.exe
Found: C:\cygwin\bin\tar.exe
Found: C:\cygwin\bin\test.exe
Not Found: vi
Found: C:\cygwin\bin\vim.exe

   61k 2006/11/10 C:\cygwin\bin\cygbz2-1.dll - os=4.0 img=1.0 sys=4.0
                  "cygbz2-1.dll" v0.0 ts=2006/11/10 17:42
    7k 2003/10/19 C:\cygwin\bin\cygcrypt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypt-0.dll" v0.0 ts=2003/10/19 2:57
 1059k 2007/03/29 C:\cygwin\bin\cygcrypto-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygcrypto-0.9.8.dll" v0.0 ts=2007/3/29 5:13
   40k 2006/11/15 C:\cygwin\bin\cygform-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygform-8.dll" v0.0 ts=2006/11/15 1:06
   25k 2007/05/02 C:\cygwin\bin\cyghistory6.dll - os=4.0 img=1.0 sys=4.0
                  "cyghistory6.dll" v0.0 ts=2007/5/1 20:01
  976k 2006/10/22 C:\cygwin\bin\cygiconv-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygiconv-2.dll" v0.0 ts=2006/10/22 18:44
   37k 2003/08/10 C:\cygwin\bin\cygintl-2.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-2.dll" v0.0 ts=2003/8/10 16:50
   31k 2005/11/20 C:\cygwin\bin\cygintl-3.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-3.dll" v0.0 ts=2005/11/19 20:04
   31k 2006/10/23 C:\cygwin\bin\cygintl-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygintl-8.dll" v0.0 ts=2006/10/22 19:12
   21k 2006/11/15 C:\cygwin\bin\cygmenu-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygmenu-8.dll" v0.0 ts=2006/11/15 1:05
   20k 2006/12/21 C:\cygwin\bin\cygminires.dll - os=4.0 img=1.1 sys=4.0
                  "cygminires.dll" v0.0 ts=2006/12/20 23:07
   67k 2006/11/15 C:\cygwin\bin\cygncurses++-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses++-8.dll" v0.0 ts=2006/11/15 1:13
  237k 2006/11/15 C:\cygwin\bin\cygncurses-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygncurses-8.dll" v0.0 ts=2006/11/15 1:02
   12k 2006/11/15 C:\cygwin\bin\cygpanel-8.dll - os=4.0 img=1.0 sys=4.0
                  "cygpanel-8.dll" v0.0 ts=2006/11/15 1:04
  119k 2007/04/25 C:\cygwin\bin\cygpcre-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcre-0.dll" v0.0 ts=2007/4/24 23:39
  303k 2007/04/25 C:\cygwin\bin\cygpcrecpp-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcrecpp-0.dll" v0.0 ts=2007/4/24 23:39
    7k 2007/04/25 C:\cygwin\bin\cygpcreposix-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpcreposix-0.dll" v0.0 ts=2007/4/24 23:39
   22k 2002/06/09 C:\cygwin\bin\cygpopt-0.dll - os=4.0 img=1.0 sys=4.0
                  "cygpopt-0.dll" v0.0 ts=2002/6/9 0:45
  154k 2007/05/02 C:\cygwin\bin\cygreadline6.dll - os=4.0 img=1.0 sys=4.0
                  "cygreadline6.dll" v0.0 ts=2007/5/1 20:01
  217k 2007/03/29 C:\cygwin\bin\cygssl-0.9.8.dll - os=4.0 img=1.0 sys=4.0
                  "cygssl-0.9.8.dll" v0.0 ts=2007/3/29 5:13
   65k 2006/10/16 C:\cygwin\bin\cygz.dll - os=4.0 img=1.0 sys=4.0
                  "cygz.dll" v0.0 ts=2006/10/15 20:10
 1830k 2007/01/31 C:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2007/1/31 3:58
    Cygwin DLL version info:
        DLL version: 1.5.24
        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: Wed Jan 31 10:57:51 CET 2007
        CVS tag: cr-0x5f1
        Shared id: cygwin1S4


Service             : sshd
Display name        : CYGWIN sshd
Current State       : Stopped
Command             : /usr/sbin/sshd -D -d
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Environment         : CYGWIN="ntsec tty" 
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : LocalSystem


Cygwin Package Information
Last downloaded files to: C:\cygwin\pkg
Last downloaded files from: http://mirrors.kernel.org/sourceware/cygwin

Package              Version
_update-info-dir     00532-1
alternatives         1.3.29a-1
ash                  20040127-3
base-files           3.7-1
base-passwd          2.2-1
bash                 3.2.17-15
bzip2                1.0.3-2
coreutils            6.9-3
crypt                1.1-1
cygrunsrv            1.17-1
cygutils             1.3.1-1
cygwin               1.5.24-2
cygwin-doc           1.4-4
editrights           1.01-1
findutils            4.3.8-1
gawk                 3.1.5-4
grep                 2.5.1a-4
groff                1.18.1-2
gzip                 1.3.12-1
less                 382-1
libbz2_1             1.0.3-2
libiconv2            1.11-1
libintl2             0.12.1-3
libintl3             0.14.5-1
libintl8             0.15-1
libncurses8          5.5-3
libpcre0             7.1-1
libpopt0             1.6.4-4
libreadline6         5.2.4-8
login                1.9-7
man                  1.6e-1
minires              1.01-1
mktemp               1.5-4
openssh              4.6p1-1
openssl              0.9.8e-3
rebase               2.4.3-1
run                  1.1.10-1
sed                  4.1.5-2
tar                  1.18-1
tcp_wrappers         7.6-1
termcap              20050421-1
terminfo             5.5_20061104-1
texinfo              4.8a-1
vim                  7.1-1
which                1.7-1
zlib                 1.2.3-2
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/

Reply via email to