E
E
elisey4742017-01-24 18:39:08
linux
elisey474, 2017-01-24 18:39:08

Why doesn't VNC work through SSH port forwarding?

There are 2 machines:
NOTEBOOK and SERVER
1) I run x11vnc VNC server on NOTEBOOK:
x11vnc -display :0
2) Forward port 5900 on NOTEBOOK:
ssh -f -N -R 50144:localhost:5900 [email protected]
3) Forward port on NOTEBOOK 50144:
ssh -f -N -L 50144:localhost:50144 [email protected] That is
:
NOTEBOOK:50144 - SERVER:50144 - NOTEBOOK 5900
I start vnc client on NOTEBOOK and enter localhost:50144 That is,
traffic should go through 2 ssh tunnels. But the vnc client shows a black screen instead of the usual connection. Why does not it work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Karabanov, 2017-01-25
@karabanov

ssh -L 127.1:50144:127.1:50144 [email protected] ssh -L 127.1:50144:127.1:5900 [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question