Dropped ssh/X session, how to pickup where left off?












9















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.










share|improve this question





























    9















    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.










    share|improve this question



























      9












      9








      9


      2






      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Oct 19 '11 at 2:41









      3498DB

      15.8k114762




      15.8k114762










      asked Oct 18 '11 at 17:35









      Charlie WilsonCharlie Wilson

      40149




      40149






















          2 Answers
          2






          active

          oldest

          votes


















          5














          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





          share|improve this answer


























          • 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













          • 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





















          0














          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.






          share|improve this answer























            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
            });


            }
            });














            draft saved

            draft discarded


















            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









            5














            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





            share|improve this answer


























            • 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













            • 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


















            5














            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





            share|improve this answer


























            • 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













            • 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
















            5












            5








            5







            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





            share|improve this answer















            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






            share|improve this answer














            share|improve this answer



            share|improve this answer








            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 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













            • 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











            • 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















            0














            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.






            share|improve this answer




























              0














              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.






              share|improve this answer


























                0












                0








                0







                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.






                share|improve this answer













                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.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Oct 18 '11 at 21:10









                Tim HaegeleTim Haegele

                23717




                23717






























                    draft saved

                    draft discarded




















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Plaza Victoria

                    In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                    How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...