we have a file sshd_config where we can set the flags for the users belonging to a group.
add a flag called "AllowGroups" and following it provide the group name.
ex: AllowGroups
So this flag allows those users who belong to this group to login in to the machine.
we can even restrict root the permission for loging in by
providing the flag PermitRootLogin as "yes"
ex: PermitRootLogin yes
remember to restart the ssh smf in the machine so that the setting take effect.
0 comments:
Post a Comment