Thanx Hugues
Indeed there are event viewer messages, a pair for each time you attempt to
start the service. Here they are
Event Type: Error
Event Source: sshd
Event Category: None
Event ID: 0
Date: 9/28/2001
Time: 6:55:57 AM
User: N/A
Computer: RSTROM
Description:
The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The
local computer may not have the necessary registry information or message
DLL files to display messages from a remote computer. The following
information is part of the event: sshd : Win32 Process Id = 0x3E8 : Cygwin
Process Id = 0x3E8 : starting service `sshd' failed: execv: 255, error 0.
Event Type: Information
Event Source: sshd
Event Category: None
Event ID: 0
Date: 9/28/2001
Time: 6:55:57 AM
User: N/A
Computer: RSTROM
Description:
The description for Event ID ( 0 ) in Source ( sshd ) cannot be found. The
local computer may not have the necessary registry information or message
DLL files to display messages from a remote computer. The following
information is part of the event: sshd : Win32 Process Id = 0x3E8 : Cygwin
Process Id = 0x3E8 : `sshd' service stopped.
Hope this information helps.
Any ideas why the service won't start?
Thanx,
Robert
-----Original Message-----
From: ssh-l-owner@erdelynet.com [mailto:ssh-l-owner@erdelynet.com]On
Behalf Of Latour, Hugues
Sent: Friday, September 28, 2001 8:11 AM
To: 'ssh-l@erdelynet.com'
Subject: RE: [ssh-l] More SSH Errors
Robert,
When you start sshd as a services it produce event messages. In the event
viewer under
Application those messages will show up. It might tell you a bit more
what is going wrong.
have a look. Let us know want you found.
Hugues,
-----Original Message-----
From: Robert Strom [mailto:rstrom@lucent.com]
Sent: Friday, September 28, 2001 7:17 AM
To: ssh-l@erdelynet.com
Subject: RE: [ssh-l] More SSH Errors
OK .... there were other users that were listed on the permissions tab. I
removed them and I am no longer getting the Bad Ownership errors.
I still cannot start the SSHD executable nor can I start the service.
If I try to start the executable by running /usr/sbin/sshd I get this
message
$ /usr/sbin/sshd
Could not load host key: /etc/ssh_host_key
Could not load host key: /etc/ssh_host_rsa_key
Could not load host key: /etc/ssh_host_dsa_key
Disabling protocol version 1. Could not load host key
Disabling protocol version 2. Could not load host key
sshd: no hostkeys available -- exiting.
I would imagine this is because the System is the owner of these files and
no one else has access to them.
If I change the ownership of these files to the Administrators group then I
get the bad ownership message again.
If I try to start the service using the net start command I get
$ net start "Cygwin SSHD"
The Cygwin SSHD service is starting.
The Cygwin SSHD service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
or
If I try to start the service through the Services MMC I get
Could not start the Cygwin SSHD service on Local Computer.
The service did not return an error. This could be an internal Windows error
or an internal service error.
The SSH key files are in the /etc directory and they are set to chmod 600
and chown system.system
Robert@RSTROM /etc
$ ls -al ssh*
-rw-rw-rw- 1 Robert None 1123 Sep 27 22:56 ssh_config
-rw------- 1 SYSTEM SYSTEM 672 Jul 11 22:52 ssh_host_dsa_key
-rwx------ 1 Administ Administ 603 Jul 11 22:52 ssh_host_dsa_key.pub
-rw------- 1 SYSTEM SYSTEM 528 Jul 11 22:52 ssh_host_key
-rwx------ 1 Administ Administ 332 Jul 11 22:52 ssh_host_key.pub
-rw------- 1 SYSTEM SYSTEM 883 Jul 11 22:52 ssh_host_rsa_key
-rwx------ 1 Administ Administ 223 Jul 11 22:52 ssh_host_rsa_key.pub
-rw-rw-rw- 1 Robert None 1202 Sep 27 22:56 sshd_config
Any and all help greatly appreciated!
TIA,
Robert Strom
-----Original Message-----
From: ssh-l-owner@erdelynet.com [mailto:ssh-l-owner@erdelynet.com]On
Behalf Of Richard Stanton
Sent: Friday, September 28, 2001 1:13 AM
To: ssh-l@erdelynet.com
Subject: RE: [ssh-l] More SSH Errors
I had this problem too.
In Windows Explorer, look at the files' security/permission settings. In my
case the problem was that other users also had access to the file. Delete
them and see if that helps.
Richard Stanton
Associate Professor of Finance
Haas School of Business
U.C. Berkeley
545 Student Services Building #1900
Berkeley, CA 94720-1900
tel. (510) 642-7382
fax. (510) 643-1420
email: stanton@haas.berkeley.edu
Web: http://haas.berkeley.edu/~stanton
> -----Original Message-----
> From: ssh-l-owner@erdelynet.com [mailto:ssh-l-owner@erdelynet.com]On
> Behalf Of Robert Strom
> Sent: Thursday, September 27, 2001 8:01 PM
> To: ssh-l@erdelynet.com
> Subject: [ssh-l] More SSH Errors
>
>
> Again, I followed the instructions on the erdelynet.com SSHD
> Setup page and
>
> I am also getting this message when trying to start the SSHD service
> manually
>
> $ /usr/sbin/sshd
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> Bad ownership or mode(0600) for '/etc/ssh_host_key'.
> It is recommended that your private key files are NOT accessible
> by others.
> This private key will be ignored.
> bad permissions: ignore key: /etc/ssh_host_key
> Could not load host key: /etc/ssh_host_key
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> Bad ownership or mode(0600) for '/etc/ssh_host_rsa_key'.
> It is recommended that your private key files are NOT accessible
> by others.
> This private key will be ignored.
> bad permissions: ignore key: /etc/ssh_host_rsa_key
> Could not load host key: /etc/ssh_host_rsa_key
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> @ WARNING: UNPROTECTED PRIVATE KEY FILE! @
> @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
> Bad ownership or mode(0600) for '/etc/ssh_host_dsa_key'.
> It is recommended that your private key files are NOT accessible
> by others.
> This private key will be ignored.
> bad permissions: ignore key: /etc/ssh_host_dsa_key
> Could not load host key: /etc/ssh_host_dsa_key
> Disabling protocol version 1. Could not load host key
> Disabling protocol version 2. Could not load host key
> sshd: no hostkeys available -- exiting.
>
> Any help will be greatly appreciated
>
> Thanks,
>
> Robert
> --
> List Information: http://tech.erdelynet.com/maillist-ssh-l.asp
> List Archives: http://erdelynet.com/archive/ssh-l/
>
-- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/ -- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/ -- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/ -- List Information: http://tech.erdelynet.com/maillist-ssh-l.asp List Archives: http://erdelynet.com/archive/ssh-l/Received on Fri Sep 28 09:03:08 2001
This archive was generated by hypermail 2.1.8 : Fri Jul 29 2005 - 17:33:30 EDT