I'm gettin a headache trying to access a remote VLC & SSH. This is the situation :
Local
: Win box behind NAT, dynamic IP. I want to connect from here.
Hop
: Linux box, static IP server
Remote
: Linux box behind NAT, dynamic IP. I want to connect here
As the remote
has dynamic IP and is behind NAT, I make ssh reverse tunnels to the hop
:
ssh -R 55900:localhost:5900 -R 50022:localhost:22 user@hop
This step seems to work. From the hop
, I can ssh the remote
connecting to localhost port 50022 :
ssh -p 50022 user@localhost
Then from the local, I make ssh tunnels to the hop, with putty :
Once the second tunnel is made on local
, when I try to reach the remote
SSH or VNC, the connection is straight closed.
For SSH (via another instance of putty), I get the error "Server unexpectedty closed the connection"
For VNC (TightVNC Viewer) : "Connection has been gracefully closed"
I tried to change some putty options after looking for solutions on the web, as "enable X11 forwarding", or "Allow agent forwarding", but without success.
Any idea of how to solve this?
Thanks