Restrict openssh REMOTE port-forward
I want client X to be able to connect with this command: ssh -L 30300:localhost:8080 -R 1037:localhost:55555
Client Y to be able to connect with: ssh -L 30300:localhost:8080 -R
and so on
but client Y should be forbidden to connect with: ssh -L
30300:localhost:8080 -R 1037:localhost:55555
If client X has remote port 1037 on the server then client Y should be
forbidden to do remote port-forwarding on port 1037 if client X is not
Can't it be restricted somehow with some Linux commands, or openssh configuration?
I mean restrict only client X (which is behind a certain ip address)
to listen to port 1037 on the server.
I'm not Linux user, and have minimal knowledge about Linux, but maybe