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]

Even more problems setting up ssh server


I'm having problems getting the ssh server up and running. I've installed 
it on 5 other computers without problems, but on this computer, it just 
doesn't work. Perhaps something I don't know about is running in the 
background stopping it, but I havn't been able to figure out what. I've 
searched through the user groups, but the posted solutions have not 
helped.  I am running the latest Cygwin on windows XP.

I installed sshd with cygwin, then set it up using ssh-host-config 
answering yes to each question. Now when I try to start the servie, 
I get the following message:

$ 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 know this is a common problem, but I havn't been able to make any 
of the posted solutions work. I'm hoping with the following output I 
can get more targeted help. 

$ ls -l /var
total 0
drwxr-xr-x+ 1 knuth  root 0 Feb 22 15:19 cache
drwxr-xr-x+ 1 SYSTEM root 0 Feb 22 15:23 empty
drwxr-xr-x+ 1 USRNAME  root 0 Feb 22 15:18 lib
drwxrwxrwx+ 1 USRNAME  root 0 Feb 22 16:30 log
drwxrwxrwx+ 1 USRNAME  root 0 Feb 22 15:18 run
drwxrwxrwt+ 1 USRNAME  root 0 Feb 22 15:18 tmp


$ ls -l /etc/ssh*
-rw-r--r-- 1 USRNAME  None 1555 Feb 22 16:15 /etc/ssh_config
-rw------- 1 SYSTEM None  668 Feb 22 15:23 /etc/ssh_host_dsa_key
-rw-r--r-- 1 SYSTEM None  606 Feb 22 15:23 /etc/ssh_host_dsa_key.pub
-rw------- 1 SYSTEM None  227 Feb 22 15:23 /etc/ssh_host_ecdsa_key
-rw-r--r-- 1 SYSTEM None  178 Feb 22 15:23 /etc/ssh_host_ecdsa_key.pub
-rw------- 1 SYSTEM None  981 Feb 22 15:23 /etc/ssh_host_key
-rw-r--r-- 1 SYSTEM None  646 Feb 22 15:23 /etc/ssh_host_key.pub
-rw------- 1 SYSTEM None 1679 Feb 22 15:23 /etc/ssh_host_rsa_key
-rw-r--r-- 1 SYSTEM None  398 Feb 22 15:23 /etc/ssh_host_rsa_key.pub
-rw-r--r-- 1 USRNAME None 3185 Feb 22 16:16 /etc/sshd_config


$ cygcheck -f /usr/bin/cygz.dll /usr/bin/cygcrypt-0.dll ...
.../usr/bin/cygcrypto-0.9.8.dll
crypt-1.1-1
libopenssl098-0.9.8r-1
zlib0-1.2.5-1

$ cygrunsrv -V -Q sshd
Service             : sshd
Display name        : CYGWIN sshd
Current State       : Stopped
Command             : /usr/sbin/sshd -D
stdin path          : /dev/null
stdout path         : /var/log/sshd.log
stderr path         : /var/log/sshd.log
Process Type        : Own Process
Startup             : Automatic
Dependencies        : tcpip
Account             : LocalSystem

$ /usr/sbin/sshd -D
/var/empty must be owned by root and not group or world-writable.

$ /usr/sbin/sshd -D -ddd
debug2: load_server_config: filename /etc/sshd_config
debug2: load_server_config: done config len = 202
debug2: parse_server_config: config /etc/sshd_config len 202
debug3: /etc/sshd_config:13 setting Port 22
debug3: /etc/sshd_config:41 setting StrictModes no
debug3: /etc/sshd_config:97 setting UsePrivilegeSeparation yes
debug3: /etc/sshd_config:112 setting Subsystem sftp     /usr/sbin/sftp-server
debug1: sshd version OpenSSH_5.8p1
debug3: Incorrect RSA1 identifier
debug1: read PEM private key done: type RSA
debug1: private host key: #0 type 1 RSA
debug3: Incorrect RSA1 identifier
debug1: read PEM private key done: type DSA
debug1: private host key: #1 type 2 DSA
debug3: Incorrect RSA1 identifier
debug1: read PEM private key done: type ECDSA
debug1: private host key: #2 type 3 ECDSA
/var/empty must be owned by root and not group or world-writable.


$ netstat -a | grep ssh 
(No output)

$ netstat -an|grep :22
(No output)


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


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