0

As someone who had no experience dealing with Unix or Linux before about 6 months ago, I'm feeling pretty comfortable with managing a Linux server now. The one question I do have is about DenyHosts, and how it's sending out reports.

Firstly, I get about 3 to 4 DenyHosts reports a day. My first question is, is it really true that that many people are trying to brute-force my server? Every time someone is locked out, I get an email that a host has been denied access, which isn't that important to me, as I'm the only human user on the system.

Is there a better way to handle the flood of emails coming to me, or a better way to stop people from trying to gain access to my server? Currently I have all of my root email forwarded to an actual email address, so I don't have to login via SSH to read it. (Root login is disabled, so I login as myself and sudo su into root.

Any insight into this would be much appreciated.

1

Re: "brute-forcing my server":

You can take a look at what sshd is logging, usually somewhere below /var/log. After that you might have trouble sleeping for a while...

Re: "flood of emails":

You might want to look into handling emails locally, i.e. on the server. There are tools like "procmail" around which can be configured to sort, discard or forward messages according to quite flexible criteria.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.