how to allow user toor login through ssh
Mike Clarke
jmc-freebsd2 at milibyte.co.uk
Tue Jan 3 14:22:06 UTC 2017
On Tue, 3 Jan 2017 19:15:54 +0800
Ben Woods <woodsb02 at gmail.com> wrote:
> The openssh daemon prevents login as root or toor (any user with UID 0) in
> the default configuration that ships with FreeBSD.
>
> This can be adjusted by setting the following in /etc/ssh/sshd_config:
> PermitRootLogin yes
>
> Note however, that it is not generally advisable to allow root or toor
> login via ssh, as this is a frequently attempted username for script
> kiddies and bots running random brute force attacks. Tread wisely.
If you intend to allow remote access for root via ssh then you're safer
to generate good secure ssh keys and then configure sshd to enforce
key-based authentication as the only login method by including the
following in /etc/sshd/sshd_config
PermitRootLogin without-password
--
Mike Clarke
More information about the freebsd-questions
mailing list