RE: how to restrict any user for ssh

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

 



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."



-----Original Message-----
From: redhat-list-bounces@xxxxxxxxxx
[mailto:redhat-list-bounces@xxxxxxxxxx] On Behalf Of Ezra Taylor
Sent: 14 June 2007 15:02
To: General Red Hat Linux discussion list
Subject: Re: how to restrict any user for ssh

Make sure you turn off other services that will allow a user to login.
Such as, telnet-server and the other remote shells rsh,remsh(solaris)
and rlogin.  These should already be off, due to their insecure nature.


Ezra

On 6/14/07, Manuel Arostegui Ramirez <manuel@xxxxxxxxxxxxxx> wrote:
>
> On Thursday 14 June 2007 13:21:01 Santosh Kumar wrote:
> > Hi everybody
> > I am trying to restrict any user for ssh my server.
> > But i am not able ,
> > Please help me.
> > Thanks,
>
> Ummmm so If you don't want users logging through your ssh server why 
> you don't disable it?
> On the other hand if you only want your user or some well known ones 
> just
> use:
> AllowUsers kumar whoever
>
> Hope this helps
> Manuel
>
> --
> 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
>



-- 

Ezra Taylor
-- 

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

-- 
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