How do I prevent unauthorized ssh login attempts?

Pietro Cerutti pietro.cerutti at gmail.com
Thu Apr 26 11:11:24 UTC 2007


On 4/26/07, Andreas Widerøe Andersen <wodfer at gmail.com> wrote:
> I'm getting a lot of unauthorized ssh login attempts. I have a pretty basic
> FreeBSD 6.2 setup. I have compiled my own kernel. Here's what I get from my
> daily security run output:
>
> myserver.domain.com login failures:
> Apr 25 20:00:19 myserver sshd[57810]: Invalid user staff from 65.171.74.26
[snip]
> Apr 25 20:01:13 myserver sshd[57860]: Invalid user david from 65.171.74.26
>
> How can I stop these attempts or block them - or even recognize them? I do
> not have IPF installed.

In my home server, I put SSH on a higher port and use public key to
authenticate.
This should get you rid of those messages...

>
> Thanks for your help.

Hope this helps,

> Best regards,
> Andreas

-- 
Pietro Cerutti

- ASCII Ribbon Campaign -
 against HTML e-mail and
 proprietary attachments
   www.asciiribbon.org


More information about the freebsd-questions mailing list