delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/10/19/14:56:07

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
To: cygwin AT cygwin DOT com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <rberber AT prodigy DOT net DOT mx>
Subject: Re: sshd refuses ssh connections
Date: Wed, 19 Oct 2005 13:51:36 -0500
Lines: 60
Message-ID: <dj64jm$f53$1@sea.gmane.org>
References: <BAYC1-PASMTP02C22AFAD2B236E5F46775C6700 AT CEZ DOT ICE> <435684E8 DOT 4040800 AT equate DOT dyndns DOT org> <BAYC1-PASMTP052431A24A326EC049E659C6700 AT CEZ DOT ICE>
Mime-Version: 1.0
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
In-Reply-To: <BAYC1-PASMTP052431A24A326EC049E659C6700@CEZ.ICE>
OpenPGP: url=ldap://keyserver.pgp.com
X-IsSubscribed: yes

Marc Jourdeuil wrote:
[snip]
> 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

This is because of...

> -rw-------   1 SYSTEM None     668 Oct 19 00:43 ssh_host_dsa_key
> -rw-------   1 SYSTEM None     528 Oct 19 00:43 ssh_host_key
> -rw-------   1 SYSTEM None     883 Oct 19 00:43 ssh_host_rsa_key

this, "rw SYSTEM", so nothing strange here.

> inetd is not running, should it? I have ssh in /etc/services. I have no
> /etc/inetd.conf file. Should I?

No.

> I wasn't running any firewall before. I restarted zonealarm, but that
> doesn't seem to be a factor right now.
> It might be later, when I try from another PC.

It will.

>>>ssh: connect to host localhost port 22: Connection refused

There are few possibilities for this, either sshd is not running or the fir=
ewall
prevents the connection... or your user doesn't exist for sshd (see end of =
message).

>>>  SYSTEM     728       1   ?  00:48:33 /usr/bin/cygrunsrv
>>>  SYSTEM     480     728   ?  00:48:33 /usr/sbin/sshd

This looks fine.

>>>  Proto  Local Address          Foreign Address        State
>>>  TCP    0.0.0.0:22             0.0.0.0:0              LISTENING

Also this, but just to be sure run "netstat -abn" and see if it really is s=
shd
(the PID will not match because it is a Windows PID).

>>>I can't edit
>>>/etc/ssh_config file using cygwin or win2k even though I have admin righ=
ts

This is strange, but you don't need to edit it.  Look at /etc/passwd, user =
marcj
should have group 513 (or the same group as Administrator, I'm not sure if =
this
changes from Windows version).  BTW did you set your passwd and group files=
 as
per /usr/share/doc/Cygwin/login.README?

HTH
--=20
Ren=E9 Berber


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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019