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: Stop Brute Force Attack on SSH Date: Sun, 17 Feb 2008 21:50:40 -0600 Lines: 50 Message-ID: References: <47b8d665 DOT 02fd220a DOT 6f30 DOT 11eb AT mx DOT google DOT com> <47b8f1ea DOT 2de2220a DOT 2c5d DOT 2181 AT mx DOT google DOT com> <47B8F571 DOT 3020700 AT computer DOT org> <47b8fc94 DOT 50e3220a DOT 09d0 DOT ffffdc97 AT mx DOT google DOT com> 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: <47b8fc94.50e3220a.09d0.ffffdc97@mx.google.com> 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 Kyle A. Dawson wrote: > Sorry, my mistake. I created a script, and the file had windows new > lines... I always forget that with TextPad. But I did read the readme and > now I have these files: >=20 > denyhosts.cfg > daemon-control >=20 > So the install/config seem to work.=20=20 >=20 > When I start this I get error (/var/log/denyhost.log): >=20 >=20 > DenyHosts could not obtain lock (pid: ) > [Errno 2] No such file or directory: '/var/lock/subsys/denyhosts' Correct, this directory doesn't exist in a stock Cygwin install. From your other message I see you changed DENYHOSTS_LOCK, to follow the=20 standard I use: DENYHOSTS_LOCK =3D "/var/run/denyhosts.pid" This file name has to match the one used installing the service (the=20 option -x). > starting DenyHosts: /usr/bin/env python /usr/bin/denyhosts.py --daemon > --config=3D/usr/share/denyhosts/denyhosts.cfg >=20 >=20 > The service will not start, just the above message in log. >=20 > Here is what I run > 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 > cygrunsrv -S DenyHosts >=20 >=20 > I removed the \ in the "-a start option", it did not like that. Is it > needed? No, it was a line continuation for the long command (bash interprets=20 those backslashes). --=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/