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:  Tue, 29 Jan 2008 17:13:42 -0600
Lines: 35
Message-ID: <fnobv6$h5u$1@ger.gmane.org>
References:  <000001c862bf$f0a8d090$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: <000001c862bf$f0a8d090$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:

> Thanks for pointing out that wonderful piece of software.
> I installed DenyHosts
[snip]
> How can I start denyhosts without logging on to the machine ( logon to
> windows ) and open a Cygwin bash and start denyhosts by hand?
>=20
> I tried the following:
> cygrunsrv -I  Denyhosts -d "CygWin Denyhosts" -p
> /usr/share/denyhosts/denyhosts_start.sh
[snip]

Almost right, you don't need a script, you just need the correct=20
parameters for cygrunsrv and DenyHosts:

# Remove what you did, and stop it if started by hand:
cygrunsrv --stop Denyhosts
   or
killall python
cygrunsrv --remove Denyhosts

# Install the service:
cygrunsrv -I DenyHosts -p /usr/share/denyhosts/daemon-control -a start \
-d DenyHosts -f "DenyHosts 2.6" -y sshd -x /var/run/denyhosts.pid -o

# Start it (it will start on reboot):
cygrunsrv -S DenyHosts

# Check if everything went right:
cygrunsrv -Q DenyHosts

Adjust any of the parameters if needed.
--=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/

