Why is my system doing this to me? various failures

Jeff Vian jvian10 at charter.net
Thu Jun 22 20:46:05 UTC 2006


On Thu, 2006-06-22 at 16:19 +0200, Ingemar Nilsson wrote:
> "Dotan Cohen" <dotancohen at gmail.com> writes:
> 
> > I'll set up SSH now. I do have the wife's winbox with putty here on
> > the LAN so I can try that. How do I set up SSH so that root cannot log
> > in? I'm not very experienced.
> 
> You edit /etc/ssh/sshd_config and make sure the line
> 
> PermitRootLogin no
> 
> is in the file. It might already be there, but commented out.
> 
You can also go just a bit further and make ssh even more secure with
the line

AllowUsers user1 user2 userN

This not only restricts root (as long as root is not one of the listed
users) but also explicitly lists the users who are allowed to connect
using ssh.

man sshd_config will gave lots of details.

> Regards
> Ingemar
> 




More information about the fedora-list mailing list