How do I prevent unauthorized ssh login attempts?

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

On 4/26/07, Andreas Widerøe Andersen <wodfer at> 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:
> login failures:
> Apr 25 20:00:19 myserver sshd[57810]: Invalid user staff from
> Apr 25 20:01:13 myserver sshd[57860]: Invalid user david from
> 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
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

More information about the freebsd-questions mailing list