how to restrict any user for ssh

Alfred Hovdestad alfred.hovdestad at usask.ca
Thu Jun 14 17:10:28 UTC 2007


Hi.

It really depends on what you are trying to do.  If you are trying to 
restrict which individual users can login via ssh, you could use the 
AllowUsers or AllowGroups in /etc/ssh/sshd_config.

If you want to limit which hosts can connect to your server, you could 
use a firewall (iptables) or tcp wrappers (/etc/hosts.allow, 
/etc/hosts.deny).  Of the two, iptables is more secure.

   Alfred Hovdestad, RHCE
   University of Saskatchewan


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,




More information about the redhat-list mailing list