able to login as root via ssh :-(

Don Russell fedora at drussell.dnsalias.com
Tue Aug 8 02:08:34 UTC 2006


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.





More information about the fedora-list mailing list