This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cygrunsrv -S sshd fails not started




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@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@kayve-PC /var/log
$ /usr/bin/ssh-host-config

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


kayve@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@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@kayve-PC /var/log
$ kill 4268
bash: kill: (4268) - No such process

kayve@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@kayve-PC /var/log
$

kayve@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@kayve-PC /var/log $ less /usr/share/doc/Cygwin/openssh.README

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]