The question is similar to How come I can login to another person's session over vnc just by changing the port number?
I have several (say, 10) users who connect via ssh to a remote server. Every user has associated prestarted VNC server (Xtigervnc on port 5901, 5902, etc.) They connect with port forwarding and can access their own virtual desktop. The users typically use PuTTY+VNCviewer,
The problem is: users have also an access to other users' desktops just by changing the port number in connection options. How to resolve it?
Is there a way to restrict port forwarding with a specific port to a specific user? Or may be something different?