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":
Match User jack
Hope this helps..!