delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | =?ISO-8859-1?Q?Ren=E9_Berber?= <r DOT berber AT computer DOT 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 AT a3500> |
Mime-Version: | 1.0 |
User-Agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
In-Reply-To: | <000001c862bf$f0a8d090$ac399905@a3500> |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |