Re: able to login as root via ssh :-(

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jeff Vian wrote:
On Mon, 2006-08-07 at 17:33 -0700, Don Russell wrote:
FC5
openssh-4.3p2-4

I was surprised to find that I can log in as root via ssh from my Windows machine to my FC5 box.

I've always used ssh to log in as a user then 'su -' ....

I don't see anything in /etc/ssh/sshd_config to prevent that, or enable it for that matter?

What do I need to change so root can't be logged in via ssh? Or is it letting me because it recognizes a key?

1. Change the line that reads
        PermitRootLogin yes
        to
        PermitRootLogin no

When it's pointed out mt like that it's embarrassing. :-) I have yet to learn how to do case-insensitive searches in vim :-(

2. You can also add a bit more restriction by adding

        AllowUsers your_user

which will allow ONLY those listed on that line to have ssh access to
the system.


Thanks... I like that .... I'm the only one that really needs remote access anyway.



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux