[CentOS] Signing In Other than Root

Susan Day suzieprogrammer at gmail.com
Wed Jan 6 13:29:16 UTC 2010


On Tue, Jan 5, 2010 at 9:16 AM, Max Hetrick <maxhetrick at verizon.net> wrote:

> Susan Day wrote:
> > Hi;
> > How do I make it so that it's impossible to SSH into the server directly
> > as root? That is, make it necessary to SSH in as an ordinary user and
> > then su to root?
> > TIA,
> > Suzie
>
> # vim /etc/ssh/sshd_config
>
> Uncomment the following line:
>
> #PermitRootLogin yes
> PermitRootLogin no
>
> # service sshd restart
>

Thanks!
Suzie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.centos.org/pipermail/centos/attachments/20100106/7c9e5be3/attachment.html>


More information about the CentOS mailing list