Results 1 to 2 of 2
i want to setup ssh acess to my redhat box in a way that users who belong to perticular group can ssh to my machine + there are few other ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 06-10-2012 #1Just Joined!
- Join Date
- Dec 2010
- Posts
- 6
Help with restricting ssh access
i want to setup ssh acess to my redhat box in a way that users who belong to perticular group can ssh to my machine + there are few other users who donot belong to any common group can ssh my machine, rest all users should not be able to access my machine.
Please help.
- 06-10-2012 #2
You cannot solve this groupwise, only user-by-user.
Common ways of authenticating are public keys and/or passwords.
Passwords can be invalidated, public keys in authorized_keys2 can be deleted.
Or better:
Use usermod to lock the accounts and set the expiredate to 1.
No way of authentication == no shell access.Last edited by Irithori; 06-10-2012 at 07:14 PM.
You must always face the curtain with a bow.


Reply With Quote
