Re: how to restrict any user for ssh

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

 



On Thursday 14 June 2007 16:11:49 Johan Booysen wrote:
> Depending on what you're trying to achieve (and if I understand
> correctly), you could use a nologin file, i.e.
>
> "If the file /etc/nologin exists, login will allow access only to root.
> Other users will be shown the contents of this file and their logins
> will be politely refused."
>
>

Two things:

Firstly, it's such a really bad idea to allow remote root login, even using 
ssh.

Secondly, if he only wants to allow some certain users, it's better to use the 
AllowUsers directive

Cheers!

-- 
Manuel Arostegui Ramirez.

Electronic Mail is not secure, may not be read every day, and should not
be used for urgent or sensitive issues.

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux