Repeated attacks via SSH

Bob Johnson fbsdlists at gmail.com
Mon Oct 3 06:51:07 PDT 2005


On 10/3/05, mario <mario at schmut.com> wrote:
> So, Jared Hall wrote:
> > Is there a way to block root login over 22?
> > Jared
> > ______________________
>
> yep
>
> [root at snoopy ~]#grep Root /etc/ssh/sshd_config
> PermitRootLogin no

This is not sufficient if ssh is using PAM for authentication (because
PAM will allow root logins).  Make sure you also have disabled PAM
authentication with

ChallengeResponseAuthentication    no

I think both of these settings default to "no" these days, but you
might want to check your config to be sure.

- Bob


More information about the freebsd-security mailing list