Does tmux need to be detached to survive ssh failure? The Next CEO of Stack OverflowWhy do I have to re-set env vars in tmux when I re-attach?Kill process spawned by ssh when ssh diestmux session killed when disconnecting from sshMosh and terminal multiplexingPermission denied error without ssh connectiontmux killed when connection abruptly closed by remote host, but survives when logging out manuallyensure that all tmux session terminate when SSH session endsAuthenticate SSH session from detached screen session on Server to Other Server without password auth and without storing keys on Servertmux and screen sessions disappearing when connection is lost abruptlytmux detach pauses process

Why does standard notation not preserve intervals (visually)

Would a grinding machine be a simple and workable propulsion system for an interplanetary spacecraft?

If Nick Fury and Coulson already knew about aliens (Kree and Skrull) why did they wait until Thor's appearance to start making weapons?

Is a distribution that is normal, but highly skewed considered Gaussian?

Find non-case sensitive string in a mixed list of elements?

Is it convenient to ask the journal's editor for two additional days to complete a review?

Is the D&D universe the same as the Forgotten Realms universe?

Is it ever safe to open a suspicious HTML file (e.g. email attachment)?

Bartok - Syncopation (1): Meaning of notes in between Grand Staff

Is it my responsibility to learn a new technology in my own time my employer wants to implement?

Can you be charged for obstruction for refusing to answer questions?

Unclear about dynamic binding

Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis

Rotate a column

A Man With a Stainless Steel Endoskeleton (like The Terminator) Fighting Cloaked Aliens Only He Can See

Grabbing quick drinks

Would this house-rule that treats advantage as a +1 to the roll instead (and disadvantage as -1) and allows them to stack be balanced?

Should I tutor a student who I know has cheated on their homework?

RigExpert AA-35 - Interpreting The Information

Can this equation be simplified further?

Can we say or write : "No, it'sn't"?

Is wanting to ask what to write an indication that you need to change your story?

How to check if all elements of 1 list are in the *same quantity* and in any order, in the list2?

How did people program for Consoles with multiple CPUs?



Does tmux need to be detached to survive ssh failure?



The Next CEO of Stack OverflowWhy do I have to re-set env vars in tmux when I re-attach?Kill process spawned by ssh when ssh diestmux session killed when disconnecting from sshMosh and terminal multiplexingPermission denied error without ssh connectiontmux killed when connection abruptly closed by remote host, but survives when logging out manuallyensure that all tmux session terminate when SSH session endsAuthenticate SSH session from detached screen session on Server to Other Server without password auth and without storing keys on Servertmux and screen sessions disappearing when connection is lost abruptlytmux detach pauses process










1















When people talk about tmux's ability to survive ssh failure, they usually say: "ssh into your remote box, start a tmux session, run your process, then detach the tmux session. If ssh drops your process will still be alive when you ssh in again".



To clarify: if the ssh connection drops while the tmux session is active (not detached), is the process killed?










share|improve this question







New contributor




rampatowl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
























    1















    When people talk about tmux's ability to survive ssh failure, they usually say: "ssh into your remote box, start a tmux session, run your process, then detach the tmux session. If ssh drops your process will still be alive when you ssh in again".



    To clarify: if the ssh connection drops while the tmux session is active (not detached), is the process killed?










    share|improve this question







    New contributor




    rampatowl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.






















      1












      1








      1








      When people talk about tmux's ability to survive ssh failure, they usually say: "ssh into your remote box, start a tmux session, run your process, then detach the tmux session. If ssh drops your process will still be alive when you ssh in again".



      To clarify: if the ssh connection drops while the tmux session is active (not detached), is the process killed?










      share|improve this question







      New contributor




      rampatowl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      When people talk about tmux's ability to survive ssh failure, they usually say: "ssh into your remote box, start a tmux session, run your process, then detach the tmux session. If ssh drops your process will still be alive when you ssh in again".



      To clarify: if the ssh connection drops while the tmux session is active (not detached), is the process killed?







      ssh tmux






      share|improve this question







      New contributor




      rampatowl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.











      share|improve this question







      New contributor




      rampatowl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      share|improve this question




      share|improve this question






      New contributor




      rampatowl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 2 days ago









      rampatowlrampatowl

      1083




      1083




      New contributor




      rampatowl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      rampatowl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      rampatowl is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.




















          1 Answer
          1






          active

          oldest

          votes


















          4














          No. The TMUX session will survive if your ssh session fails.



          Just reconnect to the server and attach to the tmux session with



          List tmux sessions: tmux ls
          Attach to tmux session: tmux a
          Attach to named session: tmux a -t myname


          Here is a good cheat sheet: https://gist.github.com/henrik/1967800






          share|improve this answer








          New contributor




          Oddmar Dam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.




















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            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: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            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
            );



            );






            rampatowl is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f509308%2fdoes-tmux-need-to-be-detached-to-survive-ssh-failure%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4














            No. The TMUX session will survive if your ssh session fails.



            Just reconnect to the server and attach to the tmux session with



            List tmux sessions: tmux ls
            Attach to tmux session: tmux a
            Attach to named session: tmux a -t myname


            Here is a good cheat sheet: https://gist.github.com/henrik/1967800






            share|improve this answer








            New contributor




            Oddmar Dam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
























              4














              No. The TMUX session will survive if your ssh session fails.



              Just reconnect to the server and attach to the tmux session with



              List tmux sessions: tmux ls
              Attach to tmux session: tmux a
              Attach to named session: tmux a -t myname


              Here is a good cheat sheet: https://gist.github.com/henrik/1967800






              share|improve this answer








              New contributor




              Oddmar Dam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                4












                4








                4







                No. The TMUX session will survive if your ssh session fails.



                Just reconnect to the server and attach to the tmux session with



                List tmux sessions: tmux ls
                Attach to tmux session: tmux a
                Attach to named session: tmux a -t myname


                Here is a good cheat sheet: https://gist.github.com/henrik/1967800






                share|improve this answer








                New contributor




                Oddmar Dam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                No. The TMUX session will survive if your ssh session fails.



                Just reconnect to the server and attach to the tmux session with



                List tmux sessions: tmux ls
                Attach to tmux session: tmux a
                Attach to named session: tmux a -t myname


                Here is a good cheat sheet: https://gist.github.com/henrik/1967800







                share|improve this answer








                New contributor




                Oddmar Dam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                Oddmar Dam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 2 days ago









                Oddmar DamOddmar Dam

                1564




                1564




                New contributor




                Oddmar Dam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                Oddmar Dam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                Oddmar Dam is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.




















                    rampatowl is a new contributor. Be nice, and check out our Code of Conduct.









                    draft saved

                    draft discarded


















                    rampatowl is a new contributor. Be nice, and check out our Code of Conduct.












                    rampatowl is a new contributor. Be nice, and check out our Code of Conduct.











                    rampatowl is a new contributor. Be nice, and check out our Code of Conduct.














                    Thanks for contributing an answer to Unix & Linux Stack Exchange!


                    • 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%2funix.stackexchange.com%2fquestions%2f509308%2fdoes-tmux-need-to-be-detached-to-survive-ssh-failure%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

                    getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

                    Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

                    Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.