X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
To: cygwin@cygwin.com
From: =?ISO-8859-1?Q?Ren=E9_Berber?= <r.berber@computer.org>
Subject:  Re: HowTo setup cygwin + sshd using hosts.allow and hosts.deny and  use detailed logging
Date:  Sat, 26 Jan 2008 21:33:13 -0600
Lines: 33
Message-ID: <fngu1o$mdg$1@ger.gmane.org>
References:  <000001c86076$3d07fc00$ac399905@a3500>
Mime-Version:  1.0
Content-Type:  text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding:  quoted-printable
User-Agent: Thunderbird 2.0.0.9 (Windows/20071031)
In-Reply-To: <000001c86076$3d07fc00$ac399905@a3500>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Martin wrote:

> After googeling a while i=B4m giving up.
> Can someone please give me a small HowTo
> I installed the most recent version of the cygwin distri.
> ( Full blown install)
> I can do successfully a ssh to my host.
> I have done some customizing to have sshd logging to /var/log/sshd.log.
> Solved by installing the sshd by this command:
> cygrunsrv -I sshd -d "CYGWIN sshd" -p /usr/sbin/sshd -a '-D -e'
>=20
> I=B4m not really happy of the log output cause I only see the hostname , =
IP
> and  the used username, but no timestamp.

You went the wrong way in your configuration, or at least the hard way.

Usually you don't need '-e', you just configure syslog.  Really easy,=20
with syslog (part of the inetutils package) is a one liner:

auth.*		/var/log/sshd.log

With syslog-ng you have more control but the configuration is longer.

[snip]
> Can some post a decent and small HowTo?

Install the service following /usr/share/doc/Cygwin/openssh.README;=20
install syslog or syslog-ng, and configure it to use the file you want=20
and (in syslog-ng case) the format you want.
--=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/

