SSH root login with keys only

krad kraduk at googlemail.com
Sun Apr 4 22:25:58 UTC 2010


On 4 April 2010 22:49, Julian Fagir <gnrp at gnrp.in-berlin.de> wrote:

> Hi,
>
> > Is it possible to configure sshd such that both conditions are met:
> >
> > 1. Root will be able to login only by using keys
> > 2. Normal users will still be able to use pam/keyboard-interactive
>
> perhaps the sshd-option "PermitRootLogin" does match your requirements.
> To be found in sshd_config (5).
>
>
> Regards, Julian
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe at freebsd.org"
>

Why do  you need to do this? It is generally a bad thing to allow. Why not
use su or sudo?


More information about the freebsd-questions mailing list