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
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
ssh tmux
New contributor
New contributor
New contributor
asked 2 days ago
rampatowlrampatowl
1083
1083
New contributor
New contributor
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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
New contributor
add a comment |
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.
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%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
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
New contributor
add a comment |
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
New contributor
add a comment |
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
New contributor
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
New contributor
New contributor
answered 2 days ago
Oddmar DamOddmar Dam
1564
1564
New contributor
New contributor
add a comment |
add a comment |
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.
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.
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%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
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