CYGWIN SSHD service not starting

1

To setup Hadoop I am installing CYGWIN on my 32 bit Windows 7 machine. It has installed successfully without any error.

CYGWIN Setup version : 2.774
$ uname -r : 1.7.17(0.262/5/3)

SSHD installed successfully, When I try to start CYGWINSSHD from services.msc either it doesn't start OR it starts and stops instantaneously. when I start it using cygwin termical it says..

$ net start 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.

I have googled a lot tried a lot.. but didnt succeeded.

P.S.

  • Also tried with disabled firewall and anti virus.
  • Installed CYGWIN and always start terminal as Administrator.

How can I resolve this and make sshd start, running smoothly when ever I start it?

Any help would be great to me. Thanks!

manurajhada

Posted 2013-04-30T07:36:42.717

Reputation: 169

What does /var/log/sshd.log say? – devnull – 2013-04-30T09:19:50.077

1What does NET HELPMSG 3534 say? – dave4420 – 2013-04-30T10:03:34.840

1have you run ssh-host-config and ssh-user-config? – dawud – 2013-04-30T10:43:39.117

@devnull it says "Privilege separation user sshd does not exist"

@dawud yes run ssh-host-config but not ssh-user-config. – manurajhada – 2013-04-30T11:02:09.447

Okay, Thanks @devnull because of your guidance I found a link and that solved my problem : http://codept.blogspot.in/2007/11/privilege-separation-user-sshd-does-not.html

But now when I run ssh localhost it says Connection closed by ::1. What to do now?

– manurajhada – 2013-04-30T11:11:18.107

Does ssh -v localhost give any further clue? Check sshd_config: is password authentication enabled? – devnull – 2013-04-30T11:22:24.683

Here is the output..

$ ssh -v localhost .......... debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/manu/.ssh/id_rsa Connection closed by ::1 – manurajhada – 2013-04-30T11:49:25.613

Here is what in found in C:\cygwin\etc "# To disable tunneled clear text passwords, change to no here! #PasswordAuthentication yes" – manurajhada – 2013-04-30T12:04:55.907

Did you use the default privileged account while executing ssh-host-config? If so, try ssh -v cyg_server@localhost. – devnull – 2013-04-30T12:05:52.663

yes you are right.. can you please tell me what is the default password for ssh -v cyg_server@localhost ? – manurajhada – 2013-04-30T12:07:40.900

You'll need to uncomment #PasswordAuthentication yes in sshd_config, i.e. the line should read PasswordAuthentication yes. – devnull – 2013-04-30T12:08:49.647

The password would be what you supplied while executing ssh-host-config! – devnull – 2013-04-30T12:10:09.260

ohh, Sorry. How do I change or bypass the authentication process then? – manurajhada – 2013-04-30T12:16:10.950

Answers

3

As suggested by @devNull I read /var/log/sshd.log and file said Privilege separation user sshd does not exist. When googled the issue found a BlogPost that solved my problem smoothly and that instructed to

Add this line into /etc/passwd file,

sshd:x:74:74:Privilege-separated SSH:/var/empty/sshd:/sbin/nologin

and this line into /etc/group file,

/etc/group:sshd:*:27:

P.S. : The purpose of this answer is just to maintain a log/StickyNote to the problem and its solution for self and others.

manurajhada

Posted 2013-04-30T07:36:42.717

Reputation: 169

0

I had deleted the sshd user on my machine. Simply creating a standard user with name sshd resolved this problem for me.

zelanix

Posted 2013-04-30T07:36:42.717

Reputation: 1 134