Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 4 Apr 2010 23:25:56 +0100
From:      krad <kraduk@googlemail.com>
To:        Julian Fagir <gnrp@gnrp.in-berlin.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: SSH root login with keys only
Message-ID:  <i2hd36406631004041525j25e3c738n82968b6e5f8c421a@mail.gmail.com>
In-Reply-To: <20100404234959.23966b02@eselhitler>
References:  <hpaut3$4gl$1@dough.gmane.org> <20100404234959.23966b02@eselhitler>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4 April 2010 22:49, Julian Fagir <gnrp@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@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> freebsd-questions-unsubscribe@freebsd.org"
>

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?i2hd36406631004041525j25e3c738n82968b6e5f8c421a>