delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/12/30/21:49:34

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs
Date: Tue, 30 Dec 2003 21:49:19 -0500 (EST)
From: Igor Pechtchanski <pechtcha AT cs DOT nyu DOT edu>
Reply-To: cygwin AT cygwin DOT com
To: prgmmer <prgmmer AT comcast DOT net>
cc: cygwin AT cygwin DOT com
Subject: Re: Fw: Problem configuring sshd as a service -expr error
In-Reply-To: <000e01c3cf3f$a9df9f80$0200a8c0@Powerspec>
Message-ID: <Pine.GSO.4.56.0312302143560.18706@slinky.cs.nyu.edu>
References: <000e01c3cf07$fdc51c20$0200a8c0 AT Powerspec> <Pine DOT GSO DOT 4 DOT 56 DOT 0312301412300 DOT 18706 AT slinky DOT cs DOT nyu DOT edu> <000e01c3cf3f$a9df9f80$0200a8c0 AT Powerspec>
MIME-Version: 1.0
Note-from-DJ: This may be spam

Please make sure your mailer doesn't leave raw e-mail addresses in the
message -- they're food for spam harvesters.

Your cygcheck output looks a bit weird (i.e., you have findutils
installed, but "find" was not found; your path doesn't contain
/usr/X11R6/bin even though you've installed XFree86 -- a stale
/etc/profile, perhaps?).  I'd suggest running "cygcheck -cv" to see if
your installation is corrupted, and if so, which files are missing.

As for the error 1062 message -- look in /var/log/sshd.log and the Windows
event log and see if there are any clues there.
	Igor

On Tue, 30 Dec 2003, prgmmer wrote:

> Cygwin 1.5.5-1 under Xp
>
> Currently ssh-host-config runs after i deleted some other paths off of this
> old computer. However I get:
>
> cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error 1062:
> The service has not been started.
>
> Thanxs.
>
> ----- Original Message -----
> From: Igor Pechtchanski
> To: prgmmer
> Cc: cygwin<at>cygwin<dot>com
> Sent: Tuesday, December 30, 2003 11:21 AM
> Subject: Re: Fw: Problem configuring sshd as a service -expr error
>
> > On Tue, 30 Dec 2003, prgmmer wrote:
> >
> > > I've been following and looking at a couple guides to setting up sshd on
> > > cygwin.
> > >
> > > So i've already download openssh and cygwin of course and cygwin runs fine.
> > >
> > > I create some environement variables and I add Path
> > >
> > > Then here's the problem. When I :
> > >
> > > ssh-host-config -y
> > >
> > > it gives me this output
> > > bash-2.05b$ ssh-host-config -y
> > > /usr/bin/ssh-host-config: line 113: [: -gt: unary operator expected
> > > /usr/bin/ssh-host-config: line 180: [: -gt: unary operator expected
> >
> > These two lines mean that "expr" didn't work correctly.
> >
> > > Generating /etc/ssh_config file
> > > c:\usr\local\wbin\cp.exe: /etc/defaults/etc/ssh_config: No such file or directory
> >   ^^^^^^^^^^^^^^^^^^^^^^^^
> > This means that you have another set of unix-like tools in your path
> > *before* the Cygwin ones.  I'd also assume you have "expr" there, which
> > would explain why it didn't work as expected.
> >
> > > Overwrite existing /etc/sshd_config file? (yes/no) yes
> > > Can't overwrite. /etc/sshd_config is write protected.
> > > /usr/bin/ssh-host-config: line 253: [: -gt: unary operator expected
> > > /usr/bin/ssh-host-config: line 318: [: -gt: unary operator expected
> >
> > Same "expr" problem.
> >
> > > grep: /ssh-host-config.756/SERVICES: No such file or directory
> > > grep: /ssh-host-config.756/SERVICES: No such file or directory
> > > /usr/bin/ssh-host-config: line 358: /ssh-host-config.756/SERVICES: No such file or directory
> >
> > Again, looks like the wrong "awk" is found.
> >
> > > WARNING: Adding ssh to C:\WINDOWS\SERVICES failed!
> > > /usr/bin/ssh-host-config: line 415: [: -gt: unary operator expected
> >
> > Same "expr" problem.
> >
> > > Host configuration finished. Have fun!
> > > bash-2.05b$
> > >
> > > And windows XP complains about how expr crashed.
> >
> > Please post the output of 'type -a expr' from a bash prompt.
> >
> > > If I can get any help it would be greatly appreciated.. thank you
> > > Cygwin newb
> >
> > It would help immensely if you read and followed the Cygwin problem
> > reporting guidelines at <http://cygwin.com/problems.html>, especially the
> > part about attaching (as an uncompressed text *attachment*) the output of
> > 'cygcheck -svr'.
> > 	Igor

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha AT cs DOT nyu DOT edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor AT watson DOT ibm DOT com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019