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: error starting sshd as a service

On Jul 1, 2006, at 3:40 PM, Larry Hall (Cygwin) wrote:

> Yes. Please read and follow the problem reporting guidelines found here:

Thanks. cygcheck output is attached. In addition, here are the details of my environment and history that are not reported by cygcheck but are relevant.

*** I first allowed the script to create the sshd_server account, since then I have modified the group membership of the account to allow interactive logins (so that I could try running the sshd server from the cygwin shell/CLI)

***Re: the configuration of SSHD - I allowed the script to do it, and since then have used cygrunsrv to remove the service and then add it back as follows:
cygrunsrv -I sshd -p /usr/sbin/sshd -u sshd_server -e "CYGWIN=binmode tty ntsec" -t auto
it prompted me for a password, which I have verified is the correct one.

*** Re: permissions, here are what I believe to be the relevant files
$ ls -l /etc/ssh*
-rwxr-x--- 1 sshd_server None 1354 Jun 30 23:28 /etc/ssh_config
-rw------- 1 sshd_server None 668 Jun 30 20:50 /etc/ssh_host_dsa_key
-rw-r--r-- 1 sshd_server None 610 Jun 30 20:50 /etc/
-rw------- 1 sshd_server None 983 Jun 30 20:50 /etc/ssh_host_key
-rw-r--r-- 1 sshd_server None 647 Jun 30 20:50 /etc/
-rw------- 1 sshd_server None 1675 Jun 30 20:50 /etc/ssh_host_rsa_key
-rw-r--r-- 1 sshd_server None 402 Jun 30 20:50 /etc/
-rw-r--r-- 1 sshd_server None 2844 Jun 30 23:28 /etc/sshd_config

$ ls -l /var/empty/
total 16
-rw-r--r-- 1 sshd_server None 14272 Jul  1 15:51 cygcheck.out

$ ls -l /var/log/
total 820
-rw-r--r--  1 SYSTEM        root       0 Jun 30 23:02 cygserver.log
-rw-rw-rw-  1 Administrator None  282348 Jul  1 15:59 lastlog
-rwxr-x---+ 1 Administrator Users 683494 Jun 30 20:43 setup.log
-rwxr-x---+ 1 Administrator Users  18503 Jun 30 20:43 setup.log.full
-rw-rw-rw-  1 sshd_server   None     358 Jun 30 23:11 sshd.log


Attachment: cygcheck.out
Description: Binary data

On 07/01/2006, Raymond Blum wrote:
My Win2003 server sshd stopped working last night, from the time of day I assume that it was an MS Windows update and in hindsight perhaps windows FW had started blocking it and it was reparable but... I decided instead to upgrade my Cygwin installation to the current release (bad move)
I have it at the point where I can run sshd as the sshd_server user ("/usr/sbin/sshd -D") but when I start it as a service I get the message in the event viewer
"The sshd service was unable to log on as .\sshd_server with the currently configured password due to the following error: The parameter is incorrect."
I tried, against popular advice in the archives, to run as the local system account and turn off privilege separation in sshd_config but while the service started I then got the error "seteuid 1003 no such process" in the application event log every time I tried to ssh into the machine. So, I abandoned that effort and put it back to running as sshd_server.
I have uninstalled, reinstalled, checked the password for the user several times.
I have also googled and tried various advice offered on different pages for the last 6 hours. So, I decided that it is time to ask for help.
Here is what I have from cygrunsrv
$cygrunsrv -L
$cygrunsrv -Q sshd
Service : sshd
Display name : CYG SSHD
Current State : Started
Command : /usr/sbin/sshd -D
I have no idea what parameter it is that's invalid (or even what command it is a parameter to) - ie a parameter to cygrunsrv or a parameter to sshd.
I have the machine running sshd -D from a session logged in as sshd_server but obviously this is not acceptable in the long term.
Thanks for reading this far, any advice or ideas?

Yes. Please read and follow the problem reporting guidelines found here:

> Problem reports:

You've told us what the problem is you're having but not much in the way of
details of what you have installed or what you did to configure sshd. So I'd
suggest starting with the basics back at the beginning.

Larry Hall                    
RFK Partners, Inc.                      (508) 893-9779 - RFK Office
216 Dalton Rd.                          (508) 893-9889 - FAX
Holliston, MA 01746

Unsubscribe info:
Problem reports:

Unsubscribe info:
Problem reports:

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