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?