and I created the VNC server in my remote VM, started the VNC server in it and pointed to my local machine using the
Create an SSH connection on your local computer that securely forwards to the localhost connection for VNC. You can do this via the terminal on Linux or macOS with the following command: ssh -L 5901:127.0.0.1:5901 -C -N -l testmachine_1 188.8.131.52
But when I point to my local machine it worked successfully. I am able to take the remote using VNC.
But when I login to some other machine and point the same remote machine to it, It failed to connect.
I am not able to see any error, It got stuck like this
/etc/test$ ssh -L 5901:127.0.0.1:5901 -C -N -l testmachine_2 184.108.40.206 firstname.lastname@example.org's password:
Could someone let me know the possible reasons for it?