1838120 Members
4171 Online
110124 Solutions
New Discussion

Bloack a user

 
zsujith
Frequent Advisor

Bloack a user

Hi,
I want to block a user to use secure shell.

Can any one guide me ?

Thanks
Sujith.
"The most wasted day is that in which we have not laughed."
4 REPLIES 4
Steven E. Protter
Exalted Contributor

Re: Bloack a user

Shalom,

fast:

passwd -l username

Can not log on the system at all.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Chris Vail
Honored Contributor

Re: Bloack a user

Your question is vague, but you might look into modifying the ssh_config file. First add a line that allows all users, then another that denies just the one you want to deny access.

AllowUsers *
DenyUsers HarryReid

Good luck
Chris
Sp4admin
Trusted Contributor

Re: Bloack a user

If you use ssh2, you can modify the ssh2_config file and modify the "DenyUser" and add that user to the config file. Or as Steven said lock the account.

sp,
zsujith
Frequent Advisor

Re: Bloack a user

Thank U
"The most wasted day is that in which we have not laughed."