Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    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.

  2. #2
    Trusted Penguin Irithori's Avatar
    Join Date
    May 2009
    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.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts