Dropped ssh/X session, how to pickup where left off?
I am VPN from a Linux box to another. I log in to the other box with ssh -X. I open an X window/program in an attempt to do a software installation. The painful truth is that this software cannot be installed from the shell. Anyway, all is well but slow. However, the VPN session will periodically drop and the installation is frozen.
Does anyone have any suggestions for how after I re-login to VPN could I restore that ssh/X session? Or, is that impossible?
ssh -X [email protected]
./setup.sh &
[1] 1084
Continue work by X application. VPN drops.
Solution 1:
You cannot reconnect to a session you already lost. You can only kill its processes.
But if you are preparing for future, you can use tmux
or screen
for terminal-based programs and xpra
(this fork) for X11 ones.
tmux
tmux ls
tmux attach
xpra start :100 --start=xterm
xpra attach :100