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 user@192.168.0.1
./setup.sh &
[1] 1084
Continue work by X application.
VPN drops.
linux ssh ssh-tunnel xorg
add a comment |
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 user@192.168.0.1
./setup.sh &
[1] 1084
Continue work by X application.
VPN drops.
linux ssh ssh-tunnel xorg
add a comment |
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 user@192.168.0.1
./setup.sh &
[1] 1084
Continue work by X application.
VPN drops.
linux ssh ssh-tunnel xorg
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 user@192.168.0.1
./setup.sh &
[1] 1084
Continue work by X application.
VPN drops.
linux ssh ssh-tunnel xorg
linux ssh ssh-tunnel xorg
edited Oct 19 '11 at 2:41
3498DB
15.8k114762
15.8k114762
asked Oct 18 '11 at 17:35
Charlie WilsonCharlie Wilson
40149
40149
add a comment |
add a comment |
2 Answers
2
active
oldest
votes
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
If it's not finished immediately, never run it outsidescreen
. Should be in themotd
on all systems.
– Daniel Beck♦
Oct 18 '11 at 17:54
Because all users read the motd, yes.
– grawity
Oct 18 '11 at 18:12
Probably not, but seeing it upon every login might still have an effect -- at least for command-line access. I see the MOTDs of several systems every day.
– Daniel Beck♦
Oct 18 '11 at 18:16
add a comment |
You could also use nomachine NX or Freenx if ist available for your distro. Its also much faster than ssh +X forwarding.
Another option is teamviewer or vnc.
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "3"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f347926%2fdropped-ssh-x-session-how-to-pickup-where-left-off%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
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
If it's not finished immediately, never run it outsidescreen
. Should be in themotd
on all systems.
– Daniel Beck♦
Oct 18 '11 at 17:54
Because all users read the motd, yes.
– grawity
Oct 18 '11 at 18:12
Probably not, but seeing it upon every login might still have an effect -- at least for command-line access. I see the MOTDs of several systems every day.
– Daniel Beck♦
Oct 18 '11 at 18:16
add a comment |
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
If it's not finished immediately, never run it outsidescreen
. Should be in themotd
on all systems.
– Daniel Beck♦
Oct 18 '11 at 17:54
Because all users read the motd, yes.
– grawity
Oct 18 '11 at 18:12
Probably not, but seeing it upon every login might still have an effect -- at least for command-line access. I see the MOTDs of several systems every day.
– Daniel Beck♦
Oct 18 '11 at 18:16
add a comment |
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
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
edited Jan 13 at 8:46
totaam
1,4271210
1,4271210
answered Oct 18 '11 at 17:45
grawitygrawity
238k37505560
238k37505560
If it's not finished immediately, never run it outsidescreen
. Should be in themotd
on all systems.
– Daniel Beck♦
Oct 18 '11 at 17:54
Because all users read the motd, yes.
– grawity
Oct 18 '11 at 18:12
Probably not, but seeing it upon every login might still have an effect -- at least for command-line access. I see the MOTDs of several systems every day.
– Daniel Beck♦
Oct 18 '11 at 18:16
add a comment |
If it's not finished immediately, never run it outsidescreen
. Should be in themotd
on all systems.
– Daniel Beck♦
Oct 18 '11 at 17:54
Because all users read the motd, yes.
– grawity
Oct 18 '11 at 18:12
Probably not, but seeing it upon every login might still have an effect -- at least for command-line access. I see the MOTDs of several systems every day.
– Daniel Beck♦
Oct 18 '11 at 18:16
If it's not finished immediately, never run it outside
screen
. Should be in the motd
on all systems.– Daniel Beck♦
Oct 18 '11 at 17:54
If it's not finished immediately, never run it outside
screen
. Should be in the motd
on all systems.– Daniel Beck♦
Oct 18 '11 at 17:54
Because all users read the motd, yes.
– grawity
Oct 18 '11 at 18:12
Because all users read the motd, yes.
– grawity
Oct 18 '11 at 18:12
Probably not, but seeing it upon every login might still have an effect -- at least for command-line access. I see the MOTDs of several systems every day.
– Daniel Beck♦
Oct 18 '11 at 18:16
Probably not, but seeing it upon every login might still have an effect -- at least for command-line access. I see the MOTDs of several systems every day.
– Daniel Beck♦
Oct 18 '11 at 18:16
add a comment |
You could also use nomachine NX or Freenx if ist available for your distro. Its also much faster than ssh +X forwarding.
Another option is teamviewer or vnc.
add a comment |
You could also use nomachine NX or Freenx if ist available for your distro. Its also much faster than ssh +X forwarding.
Another option is teamviewer or vnc.
add a comment |
You could also use nomachine NX or Freenx if ist available for your distro. Its also much faster than ssh +X forwarding.
Another option is teamviewer or vnc.
You could also use nomachine NX or Freenx if ist available for your distro. Its also much faster than ssh +X forwarding.
Another option is teamviewer or vnc.
answered Oct 18 '11 at 21:10
Tim HaegeleTim Haegele
23717
23717
add a comment |
add a comment |
Thanks for contributing an answer to Super User!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f347926%2fdropped-ssh-x-session-how-to-pickup-where-left-off%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown