how to restrict any user for ssh

Manuel Arostegui Ramirez manuel at todo-linux.com
Thu Jun 14 14:44:57 UTC 2007


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.




More information about the redhat-list mailing list