exit terminal window2019 Community Moderator ElectionFix terminal title after SSH remote logging to another machinechange terminal window default locationexit tmux window without quitting the Terminal programtmux doesn't resize with terminal windowHow to solve terminal windowPuTTY (SSH) (tracert) Network error: Software caused connection abortSSH connections running in the background don't exit if multiple connections have been started by the same shellresume gnuscreen with split areaUnable to Connect to VNC Server Using SSH TunnelExit tmux but stay in terminal
On a tidally locked planet, would time be quantized?
Why electric field inside a cavity of a non-conducting sphere not zero?
Approximating irrational number to rational number
Does an advisor owe his/her student anything? Will an advisor keep a PhD student only out of pity?
Closed-form expression for certain product
Yosemite Fire Rings - What to Expect?
Did arcade monitors have same pixel aspect ratio as TV sets?
Why did the Mercure fail?
Count the occurrence of each unique word in the file
What if a revenant (monster) gains fire resistance?
Travelling outside the UK without a passport
A social experiment. What is the worst that can happen?
What prevents the use of a multi-segment ILS for non-straight approaches?
How do you make your own symbol when Detexify fails?
Is there a working SACD iso player for Ubuntu?
What should you do if you miss a job interview (deliberately)?
"Spoil" vs "Ruin"
How to implement a feedback to keep the DC gain at zero for this conceptual passive filter?
GraphicsGrid with a Label for each Column and Row
How can Trident be so inexpensive? Will it orbit Triton or just do a (slow) flyby?
Should I stop contributing to retirement accounts?
Why is it that I can sometimes guess the next note?
Freedom of speech and where it applies
If infinitesimal transformations commute why dont the generators of the Lorentz group commute?
exit terminal window
2019 Community Moderator ElectionFix terminal title after SSH remote logging to another machinechange terminal window default locationexit tmux window without quitting the Terminal programtmux doesn't resize with terminal windowHow to solve terminal windowPuTTY (SSH) (tracert) Network error: Software caused connection abortSSH connections running in the background don't exit if multiple connections have been started by the same shellresume gnuscreen with split areaUnable to Connect to VNC Server Using SSH TunnelExit tmux but stay in terminal
I often ssh to linux using putty. Sometimes directly ssh, sometimes invoke putty inside winscp by "open session in putty".
In some cases when I have two putty terminals connected, and type "exit" to quit one of them, the terminal does not close. It shows "logout" but remains open. It will close after I "exit" another terminal. But sometimes the terminal close right after I type "exit".
I would like to know what's the rules behind this.
terminal putty
add a comment |
I often ssh to linux using putty. Sometimes directly ssh, sometimes invoke putty inside winscp by "open session in putty".
In some cases when I have two putty terminals connected, and type "exit" to quit one of them, the terminal does not close. It shows "logout" but remains open. It will close after I "exit" another terminal. But sometimes the terminal close right after I type "exit".
I would like to know what's the rules behind this.
terminal putty
add a comment |
I often ssh to linux using putty. Sometimes directly ssh, sometimes invoke putty inside winscp by "open session in putty".
In some cases when I have two putty terminals connected, and type "exit" to quit one of them, the terminal does not close. It shows "logout" but remains open. It will close after I "exit" another terminal. But sometimes the terminal close right after I type "exit".
I would like to know what's the rules behind this.
terminal putty
I often ssh to linux using putty. Sometimes directly ssh, sometimes invoke putty inside winscp by "open session in putty".
In some cases when I have two putty terminals connected, and type "exit" to quit one of them, the terminal does not close. It shows "logout" but remains open. It will close after I "exit" another terminal. But sometimes the terminal close right after I type "exit".
I would like to know what's the rules behind this.
terminal putty
terminal putty
asked yesterday
michael morganmichael morgan
305
305
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
This sounds like you have set the ControlMaster
option in your ssh config file (or its equivalent for puTTY) to auto
:
ControlMaster
Enables the sharing of multiple sessions over a single network
connection. When set to yes, ssh(1) will listen for connections
on a control socket specified using the ControlPath argument.
Additional sessions can connect to this socket using the same
ControlPath with ControlMaster set to no (the default). These
sessions will try to reuse the master instance's network connec‐
tion rather than initiating new ones, but will fall back to con‐
necting normally if the control socket does not exist, or is not
listening.
Setting this to ask will cause ssh(1) to listen for control con‐
nections, but require confirmation using ssh-askpass(1). If the
ControlPath cannot be opened, ssh(1) will continue without con‐
necting to a master instance.
X11 and ssh-agent(1) forwarding is supported over these multi‐
plexed connections, however the display and agent forwarded will
be the one belonging to the master connection i.e. it is not pos‐
sible to forward multiple displays or agents.
Two additional options allow for opportunistic multiplexing: try
to use a master connection but fall back to creating a new one if
one does not already exist. These options are: auto and autoask.
The latter requires confirmation like the ask option.
What this means is that after the first session is opened, additional sessions will use the same network connection instead of opening additional ones, thereby using up less bandwidth and possibly reducing latency.
However, this also means that, until every other session has ended, the first "master" session cannot close its connection without also disconnecting those. Therefore, it will keep open until all other sessions have been terminated. (If you somehow force it to close, eg. by killing the puTTY task running the first connection, you will notice every otehr session closing as well.)
New contributor
So any command to identify which session is master (first) session?
– michael morgan
yesterday
Unless you're in the habit of opening multiple windows at the same time or reordering them, it should be the leftmost one in the taskbar.
– Entropy0
17 hours ago
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
);
);
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%2f508026%2fexit-terminal-window%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
This sounds like you have set the ControlMaster
option in your ssh config file (or its equivalent for puTTY) to auto
:
ControlMaster
Enables the sharing of multiple sessions over a single network
connection. When set to yes, ssh(1) will listen for connections
on a control socket specified using the ControlPath argument.
Additional sessions can connect to this socket using the same
ControlPath with ControlMaster set to no (the default). These
sessions will try to reuse the master instance's network connec‐
tion rather than initiating new ones, but will fall back to con‐
necting normally if the control socket does not exist, or is not
listening.
Setting this to ask will cause ssh(1) to listen for control con‐
nections, but require confirmation using ssh-askpass(1). If the
ControlPath cannot be opened, ssh(1) will continue without con‐
necting to a master instance.
X11 and ssh-agent(1) forwarding is supported over these multi‐
plexed connections, however the display and agent forwarded will
be the one belonging to the master connection i.e. it is not pos‐
sible to forward multiple displays or agents.
Two additional options allow for opportunistic multiplexing: try
to use a master connection but fall back to creating a new one if
one does not already exist. These options are: auto and autoask.
The latter requires confirmation like the ask option.
What this means is that after the first session is opened, additional sessions will use the same network connection instead of opening additional ones, thereby using up less bandwidth and possibly reducing latency.
However, this also means that, until every other session has ended, the first "master" session cannot close its connection without also disconnecting those. Therefore, it will keep open until all other sessions have been terminated. (If you somehow force it to close, eg. by killing the puTTY task running the first connection, you will notice every otehr session closing as well.)
New contributor
So any command to identify which session is master (first) session?
– michael morgan
yesterday
Unless you're in the habit of opening multiple windows at the same time or reordering them, it should be the leftmost one in the taskbar.
– Entropy0
17 hours ago
add a comment |
This sounds like you have set the ControlMaster
option in your ssh config file (or its equivalent for puTTY) to auto
:
ControlMaster
Enables the sharing of multiple sessions over a single network
connection. When set to yes, ssh(1) will listen for connections
on a control socket specified using the ControlPath argument.
Additional sessions can connect to this socket using the same
ControlPath with ControlMaster set to no (the default). These
sessions will try to reuse the master instance's network connec‐
tion rather than initiating new ones, but will fall back to con‐
necting normally if the control socket does not exist, or is not
listening.
Setting this to ask will cause ssh(1) to listen for control con‐
nections, but require confirmation using ssh-askpass(1). If the
ControlPath cannot be opened, ssh(1) will continue without con‐
necting to a master instance.
X11 and ssh-agent(1) forwarding is supported over these multi‐
plexed connections, however the display and agent forwarded will
be the one belonging to the master connection i.e. it is not pos‐
sible to forward multiple displays or agents.
Two additional options allow for opportunistic multiplexing: try
to use a master connection but fall back to creating a new one if
one does not already exist. These options are: auto and autoask.
The latter requires confirmation like the ask option.
What this means is that after the first session is opened, additional sessions will use the same network connection instead of opening additional ones, thereby using up less bandwidth and possibly reducing latency.
However, this also means that, until every other session has ended, the first "master" session cannot close its connection without also disconnecting those. Therefore, it will keep open until all other sessions have been terminated. (If you somehow force it to close, eg. by killing the puTTY task running the first connection, you will notice every otehr session closing as well.)
New contributor
So any command to identify which session is master (first) session?
– michael morgan
yesterday
Unless you're in the habit of opening multiple windows at the same time or reordering them, it should be the leftmost one in the taskbar.
– Entropy0
17 hours ago
add a comment |
This sounds like you have set the ControlMaster
option in your ssh config file (or its equivalent for puTTY) to auto
:
ControlMaster
Enables the sharing of multiple sessions over a single network
connection. When set to yes, ssh(1) will listen for connections
on a control socket specified using the ControlPath argument.
Additional sessions can connect to this socket using the same
ControlPath with ControlMaster set to no (the default). These
sessions will try to reuse the master instance's network connec‐
tion rather than initiating new ones, but will fall back to con‐
necting normally if the control socket does not exist, or is not
listening.
Setting this to ask will cause ssh(1) to listen for control con‐
nections, but require confirmation using ssh-askpass(1). If the
ControlPath cannot be opened, ssh(1) will continue without con‐
necting to a master instance.
X11 and ssh-agent(1) forwarding is supported over these multi‐
plexed connections, however the display and agent forwarded will
be the one belonging to the master connection i.e. it is not pos‐
sible to forward multiple displays or agents.
Two additional options allow for opportunistic multiplexing: try
to use a master connection but fall back to creating a new one if
one does not already exist. These options are: auto and autoask.
The latter requires confirmation like the ask option.
What this means is that after the first session is opened, additional sessions will use the same network connection instead of opening additional ones, thereby using up less bandwidth and possibly reducing latency.
However, this also means that, until every other session has ended, the first "master" session cannot close its connection without also disconnecting those. Therefore, it will keep open until all other sessions have been terminated. (If you somehow force it to close, eg. by killing the puTTY task running the first connection, you will notice every otehr session closing as well.)
New contributor
This sounds like you have set the ControlMaster
option in your ssh config file (or its equivalent for puTTY) to auto
:
ControlMaster
Enables the sharing of multiple sessions over a single network
connection. When set to yes, ssh(1) will listen for connections
on a control socket specified using the ControlPath argument.
Additional sessions can connect to this socket using the same
ControlPath with ControlMaster set to no (the default). These
sessions will try to reuse the master instance's network connec‐
tion rather than initiating new ones, but will fall back to con‐
necting normally if the control socket does not exist, or is not
listening.
Setting this to ask will cause ssh(1) to listen for control con‐
nections, but require confirmation using ssh-askpass(1). If the
ControlPath cannot be opened, ssh(1) will continue without con‐
necting to a master instance.
X11 and ssh-agent(1) forwarding is supported over these multi‐
plexed connections, however the display and agent forwarded will
be the one belonging to the master connection i.e. it is not pos‐
sible to forward multiple displays or agents.
Two additional options allow for opportunistic multiplexing: try
to use a master connection but fall back to creating a new one if
one does not already exist. These options are: auto and autoask.
The latter requires confirmation like the ask option.
What this means is that after the first session is opened, additional sessions will use the same network connection instead of opening additional ones, thereby using up less bandwidth and possibly reducing latency.
However, this also means that, until every other session has ended, the first "master" session cannot close its connection without also disconnecting those. Therefore, it will keep open until all other sessions have been terminated. (If you somehow force it to close, eg. by killing the puTTY task running the first connection, you will notice every otehr session closing as well.)
New contributor
New contributor
answered yesterday
Entropy0Entropy0
1012
1012
New contributor
New contributor
So any command to identify which session is master (first) session?
– michael morgan
yesterday
Unless you're in the habit of opening multiple windows at the same time or reordering them, it should be the leftmost one in the taskbar.
– Entropy0
17 hours ago
add a comment |
So any command to identify which session is master (first) session?
– michael morgan
yesterday
Unless you're in the habit of opening multiple windows at the same time or reordering them, it should be the leftmost one in the taskbar.
– Entropy0
17 hours ago
So any command to identify which session is master (first) session?
– michael morgan
yesterday
So any command to identify which session is master (first) session?
– michael morgan
yesterday
Unless you're in the habit of opening multiple windows at the same time or reordering them, it should be the leftmost one in the taskbar.
– Entropy0
17 hours ago
Unless you're in the habit of opening multiple windows at the same time or reordering them, it should be the leftmost one in the taskbar.
– Entropy0
17 hours ago
add a comment |
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%2f508026%2fexit-terminal-window%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