How do you limit the access to the SSH for different users in Linux server?
We can use “Match” in the OpenSSH configuration file. Add the Match directive in your sshd_config followed by a criteria which you want to block (User, Group, Address or Host).
The following example limits TCP and X11 port forwarding for the user "testuser":
AllowTcpForwarding no
X11Forwarding no
Match User jack
AllowTcpForwarding yes
X11Forwarding yes
Hope this helps..!
What do you think about this Article? Add your Opinion..! EmoticonEmoticon