Talk:SSH/DenyHosts

From Gentoo Linux Wiki

Jump to: navigation, search

Contents

[edit] Logging Location

I believe net-misc/openssh-4.3_p2-r1 logs to /var/log/messages, not /var/log/auth.log. I *know* older versions did to auth.log, though. So, check both of them to see which one it needs to be set too. SDibb 00:27, 23 April 2006 (UTC)

it's /var/log/messages indeed. but i would suggest they take a look in /etc/syslog-ng (or other logging deamon config) or /etc/ssh/sshdconfig and look it up, so new ppl learn about how their logging deamon works. Ken-shin

Most of the re-editing of the /etc/denyhosts.conf file can be removed from the wiki.   It was more time consuming as the instructions mislead me to designate /var/log/auth.log instead of the /var/log/messages location.  Just emerging DenyHosts and adding it to the runlevel surficed.  I believe, for the past year or so, /var/log/messages has been the default location.  However, it's *advisable* to keep a stub/note advising people installing to ensure the location is properly set.
--Roger 05:19, 29 August 2007 (UTC)

[edit] Problem with DenyHosts

I wanted to try DenyHost, that is to say I tried to see how it worked and I get denied. Now I need to stop the service and remove myself from /etc/hosts.deny each time I want to connect to the computer and so I'm not secure when I do this. I tried to purge the logs but DenyHosts keeps denying me.

No answer, but I spent 5 minutes editing your question for readability... does this count for points towards the answer? --Roger 05:10, 29 August 2007 (UTC) ;-)

[edit] Updated

DenyHosts is no longer masked so I updated the install instructions to suit.

Guess I just re-updated to suit. :-) ... all of the re-editing the configuration files is not really needed anymore. --Roger 05:11, 29 August 2007 (UTC)

[edit] MySQL

Is there a way the DenyHosts could read logs from a MySQL DB? I use HOWTO Setup PHP-Syslog-NG to log all of my messages.

--Titan 14:50, 31 March 2008 (UTC)

Personal tools