delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/06/22/12:44:18

X-Spam-Check-By: sourceware.org
X-onepass: IPPSC
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: Ao8CAFiZe0aC1Apk/2dsb2JhbAA
Date: Fri, 22 Jun 2007 09:43:47 -0700 (PDT)
From: KAYVEN RIESE <kayve AT sfsu DOT edu>
To: "DePriest, Jason R." <jrdepriest AT gmail DOT com>
cc: cygwin AT cygwin DOT com, gga <ggarra AT advancedsl DOT com DOT ar>
Subject: Re: cygrunsrv -S sshd fails not started
In-Reply-To: <31b7d2790706220859g4b6ec2a5k6cdb70fdba7441dc@mail.gmail.com>
Message-ID: <Pine.SOC.4.64.0706220935230.3539@libra.sfsu.edu>
References: <1182469846 DOT 20350 DOT ezmlm AT cygwin DOT com> <Pine DOT SOC DOT 4 DOT 64 DOT 0706211653060 DOT 3948 AT libra DOT sfsu DOT edu> <Pine DOT SOC DOT 4 DOT 64 DOT 0706211900290 DOT 11135 AT libra DOT sfsu DOT edu> <467B3A25 DOT 6020706 AT advancedsl DOT com DOT ar> <Pine DOT SOC DOT 4 DOT 64 DOT 0706212030100 DOT 11135 AT libra DOT sfsu DOT edu> <31b7d2790706220859g4b6ec2a5k6cdb70fdba7441dc AT mail DOT gmail DOT com>
MIME-Version: 1.0
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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


On Fri, 22 Jun 2007, DePriest, Jason R. wrote:
> On 6/21/07, KAYVEN RIESE  wrote:
>> On Thu, 21 Jun 2007, gga wrote:
>> > KAYVEN RIESE wrote:
>> >> On Thu, 21 Jun 2007, KAYVEN  RIESE wrote:
>> >>
>> >>>
>> >>> kayve AT kayve-PC ~
>> >>> $ cygrunsrv -S sshd
>> >>> cygrunsrv: Error starting a service: QueryServiceStatus:  Win32 error
>> >>> 1062:
>> >>> The service has not been started.
>> >>>
>> >
>> > Check /var/log/sshd.log.  There's probably more info why it failed there.
>> >
>> > You can also try starting the daemon manually for testing, as an
>> > administrator like (this will output more verbose info to the console):
>> >   > /usr/sbin/sshd -d -d -d -D
>> 
>> okay.  shoot.  i was able to connect but when i do the command
>> cygrunsrv -S sshd or the other one it still gives the same error.
>> how can i make this all happen automatically in the background so
>> i don't werry about it?  cron job or something? sheesh, but cygwin
>> is a little baby on top of windows or whatever.
>> 
> The most important parts are these:
> "If you are installing OpenSSH the first time, you can generate global
> config files and server keys by running
>
>  /usr/bin/ssh-host-config"
> and
> "You can create the private and public keys for a user now by running
>
> /usr/bin/ssh-user-config
>


kayve AT kayve-PC /var/log
$ /usr/bin/ssh-host-config

There are still ssh processes running. Please shut them down first.


kayve AT kayve-PC /var/log
$ ps
       PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
      1908       1    1908       1908    0 1000 14:41:29 /usr/bin/bash
I    2912       1    2912       5052    1 1000 20:28:40 /usr/bin/bash
      4268    1908    4268       4580    0 1000 20:29:23 /usr/sbin/sshd
I    4336       1    4336       4336    2 1000 09:26:00 /usr/bin/bash
      5760    1908    5760       4176    0 1000 09:33:35 /usr/bin/ps

(tried to connect with SSH client window, and failed)

kayve AT kayve-PC /var/log
$ debug1: fd 4 clearing O_NONBLOCK
debug1: Server will not fork when running in debugging mode.
debug3: send_rexec_state: entering fd = 7 config len 196
debug3: ssh_msg_send: type 0
debug3: send_rexec_state: done
debug1: rexec start in 4 out 4 newsock 4 pipe -1 sock 7

(hit ctrl-c)


[1]+  Exit 255                /usr/sbin/sshd -d -d -d -D

kayve AT kayve-PC /var/log
$ kill 4268
bash: kill: (4268) - No such process

kayve AT kayve-PC /var/log
$ ps
       PID    PPID    PGID     WINPID  TTY  UID    STIME COMMAND
      1908       1    1908       1908    0 1000 14:41:29 /usr/bin/bash
I    2912       1    2912       5052    1 1000 20:28:40 /usr/bin/bash
I    4336       1    4336       4336    2 1000 09:26:00 /usr/bin/bash
      2100    1908    2100       4400    0 1000 09:37:34 /usr/bin/ps

kayve AT kayve-PC /var/log
$

kayve AT kayve-PC /var/log
$ /usr/bin/ssh-user-config

WARNING: group and other have been revoked write permission to your home
          directory /home/kayve.
          This is required by OpenSSH to allow public key authentication 
using
          the key files stored in your .ssh subdirectory.
          Revert this change ONLY if you know what you are doing!

Shall I create an SSH1 RSA identity file for you? (yes/no) yes
Generating /home/kayve/.ssh/identity
Enter passphrase (empty for no passphrase):

i am going to use a passphrase

okay, now i am not sure what command to use to start.. okay..
looking thru that file..


kayve AT kayve-PC /var/log
$ less /usr/share/doc/Cygwin/openssh.README

kayve AT kayve-PC /var/log
$

bizzare "more" doesn't werk, only "less"

> Internet.  Therefore, any attempts to include unenforceable legalese
> restrictions are ridiculous and pointless.  If you can read this,
> consider yourself authorized (whether I like it or not).
>
> --
> 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/
>

*----------------------------------------------------------*
   Kayven Riese, BSCS, MS (Physiology and Biophysics)
   (415) 902 5513 cellular
   http://kayve.net
   Webmaster http://ChessYoga.org
*----------------------------------------------------------*

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