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?= 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: References: <000001c862bf$f0a8d090$ac399905 AT 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 AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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/