This is the mail archive of the
mailing list for the Cygwin project.
- From: Marco dot Rottigni at stonesoft dot com
- To: cygwin at cygwin dot com
- Date: Wed, 5 Feb 2003 11:46:36 +0100
- Subject: SSHD/
I'm a great user/fan of this fantastic CygWin allowing the freedom of *nix
on Win (in a world without fences, who needs Gates?), but I recently tried
to use sshd and got some problems.
Since I haven't been able to solve them by reading the tons of messages
and howto I found on the 'Net, I'm trying with this e-mail.
On my Win 2000 Pro SP3 box, I am a user with Administrators rights but
authenticated on a domain.
Typing "id" on prompt shows:
I ran ssh-host config apparently correctly:
$ ssh-host-config -y
chmod: changing permissions of `/var/empty': Permission denied
Generating /etc/ssh_config file
Privilege separation is set to yes by default since OpenSSH 3.3.
However, this requires a non-privileged account called 'sshd'.
For more info on privilege separation read
Generating /etc/sshd_config file
Do you want to install sshd as service?
Which value should the environment variable CYGWIN have when
sshd starts? It's recommended to set at least "ntsec" to be
able to change user context without password.
Default is "binmode ntsec tty". CYGWIN="binmode ntsec tty"
The service has been installed under LocalSystem account.
Host configuration finished. Have fun!
When I start it using "cygrunsrv -S sshd" I see
$ cygrunsrv.exe -S sshd
cygrunsrv: Error starting a service: QueryServiceStatus: Win32 error
The service has not been started.
...and in the event viewer an error like:
Event Type: Error
Event Source: sshd
Event Category: None
Event ID: 0
User: NT AUTHORITY\SYSTEM
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 = 0x4EC : Cygwin
Process Id = 0x4EC : starting service `sshd' failed: execv: 255, error
If I type "less /etc/passwd|grep marco" I see:
About permissions on files ( I read about them in some mailing list msgs),
the most important look like:
$ ls -la /var/empty
drwxr-xr-x+ 2 SYSTEM SYSTEM 0 Feb 4 17:02 .
drwxrwxrwx+ 7 SYSTEM SYSTEM 0 Feb 4 17:02 ..
$ ls -la /etc/ssh*
-rw-rw-rw- 1 SYSTEM mkgroup 1049 Feb 5 10:14 /etc/ssh_config
-rw-rw-rw- 1 SYSTEM mkgroup 1049 Feb 4 18:38
-rw------- 1 SYSTEM SYSTEM 668 Feb 4 19:45
-rw-r--r-- 1 SYSTEM SYSTEM 608 Feb 4 19:45
-rw------- 1 SYSTEM SYSTEM 533 Feb 4 19:45 /etc/ssh_host_key
-rw-r--r-- 1 SYSTEM SYSTEM 337 Feb 4 19:45
-rw------- 1 SYSTEM SYSTEM 883 Feb 4 19:45
-rw-r--r-- 1 SYSTEM SYSTEM 228 Feb 4 19:45
-rw-rw-rw- 1 SYSTEM mkgroup 2142 Feb 5 10:14 /etc/sshd_config
-rw-rw-rw- 1 SYSTEM mkgroup 2142 Feb 4 18:38
CYGWIN is set as a system variable
$ echo $CYGWIN
binmode ntsec tty
Thanks in advance.
"We can be what we give ourselves the power to be"
A Cherokee Feast of Days
Senior Technical Consultant
Tel: +39 039 6083 385
Fax: +39 039 6082 721
GSM: +39 348 8591791
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html