This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: HowTo setup cygwin + sshd using hosts.allow and hosts.deny and use detailed logging
- From: René Berber <r dot berber at computer dot org>
- To: cygwin at cygwin dot com
- Date: Tue, 29 Jan 2008 17:13:42 -0600
- Subject: Re: HowTo setup cygwin + sshd using hosts.allow and hosts.deny and use detailed logging
- References: <000001c862bf$f0a8d090$ac399905@a3500>
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?
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
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.
--
René 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/