I have a general question on OpenSSH concerning the way to allow / deny tunneling for users.
I know in OpenSSH I can allow tunneling of ports to IPs by defining the PermitOpen directive in sshd_config, for example:
PermitOpen 192.168.0.1:80 192.168.0.2:5900
But my question is: can I define something like rules that combine PermitOpen directives with users / groups?
Say I have two users: user A and user B.
User A should be allowed to access 192.168.0.1:80 only
User B should be allowed to access 192.168.0.2:5900 only
My question may sound silly to you but I really don't have any idea.