using x11 forwarding with ssh and vnc?

Posted by simona on Ask Ubuntu See other posts from Ask Ubuntu or by simona
Published on 2012-11-21T10:56:49Z Indexed on 2012/11/21 11:23 UTC
Read the original article Hit count: 329

Filed under:
|
|
|
|

I am working on a remote cluster via ssh with the -X option, because I need to visualize data and graphs, over a vpn protocol. Sometime due to the instability of the internet connection I lose my session. They told me I could use vnc in order to not lose my current session, so that if the internet connection drops I can reconnect and continue with my previously open session.

What I do is to log in the remote cluster 'remote.cluster' and type

 vncserver :1

then I open another terminal on my system and I type

 ssh -C -NL 5901:remote.cluster:5901 [email protected] &

Then I start vinagre on my system and I connect using ssh protocol. The problem is that I do not have x11 forwarding and I cannot open windows. If I try to connect using the vnc protocol with vinagre it doesn't connect, because I get something as connection timeout.

What should I do?

© Ask Ubuntu or respective owner

Related posts about ssh

Related posts about vpn