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










1















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.










share|improve this question


























    1















    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.










    share|improve this question
























      1












      1








      1








      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked yesterday









      michael morganmichael morgan

      305




      305




















          1 Answer
          1






          active

          oldest

          votes


















          1














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






          share|improve this answer








          New contributor




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




















          • 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










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



          );













          draft saved

          draft discarded


















          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









          1














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






          share|improve this answer








          New contributor




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




















          • 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















          1














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






          share|improve this answer








          New contributor




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




















          • 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













          1












          1








          1







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






          share|improve this answer








          New contributor




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










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







          share|improve this answer








          New contributor




          Entropy0 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




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









          answered yesterday









          Entropy0Entropy0

          1012




          1012




          New contributor




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





          New contributor





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






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












          • 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











          • 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

















          draft saved

          draft discarded
















































          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%2f508026%2fexit-terminal-window%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.