To deny access only to particular users/groups
Need to added/append the below lines in "/etc/ssh/sshd_config" file to deny access only to user kutty & group nutty
# vi /etc/ssh/sshd_config
DenyUsers kutty
DenyGroups nutty
#### Restart the ssh service ####
# service sshd restart
(or)
# /etc/init.d/sshd restart
________________________________________________________________
To allow access only to particular users/groups
Need to added/append the below lines in "/etc/ssh/sshd_config" file to deny access only to user kutty & group nutty
# vi /etc/ssh/sshd_config
AllowUsers kutty
AllowGroups nutty
#### Restart the ssh service ####
# service sshd restart
(or)
# /etc/init.d/sshd restart
Note:
We can also add more users/groups in the same line.
________________________________________________________________
