From my laptop, I am trying to open remote desktop in server2:
This is how it looks like:
my-mac-laptop -> vpn. ---> server1(redhat) -> server2(mac-server) <----------same network--------------->
Here, I can’t access
server2 directly. I have to connect to
server1 via VPN. And from
server1 I can access
I have already enabled Remote Login and Remote Management in the server2(mac-server).
Followed to that, I am attempting to port forward the remote desktop ports with the following command:
ssh -L 5900:server2-ip-address:5900 user@server1
My understanding has been this will tunnel all the remote desktop traffic to the
server2(mac-server) in my mac laptop.
In the next step, I open screen-sharing app from my mac laptop and type
localhost which should forward 5900 traffic to
mac-server2 over the ssh-tunnel.
However, this is not working and it is stuck with “connecting” status. Any idea?
I would like to know how I can triage this case, any ideas welcome.
Are there logs in the
mac-server2 that might assist me to debug?