Open cmd on remote computer from ssh












0














I have a windows machine that I can connect to using SSH from my RasPi.
I'd like to have a cmd shell open on the windows machine (initiated from the SSH) so that I can monitor it from the windows machine after the ssh connection is closed



I've tried using start cmd /k launch.bat but this just runs the .bat in the ssh connection.



Clarity: It's like a run it remotely from the rpi and check it on the windows machine when I get home situation










share|improve this question





























    0














    I have a windows machine that I can connect to using SSH from my RasPi.
    I'd like to have a cmd shell open on the windows machine (initiated from the SSH) so that I can monitor it from the windows machine after the ssh connection is closed



    I've tried using start cmd /k launch.bat but this just runs the .bat in the ssh connection.



    Clarity: It's like a run it remotely from the rpi and check it on the windows machine when I get home situation










    share|improve this question



























      0












      0








      0







      I have a windows machine that I can connect to using SSH from my RasPi.
      I'd like to have a cmd shell open on the windows machine (initiated from the SSH) so that I can monitor it from the windows machine after the ssh connection is closed



      I've tried using start cmd /k launch.bat but this just runs the .bat in the ssh connection.



      Clarity: It's like a run it remotely from the rpi and check it on the windows machine when I get home situation










      share|improve this question















      I have a windows machine that I can connect to using SSH from my RasPi.
      I'd like to have a cmd shell open on the windows machine (initiated from the SSH) so that I can monitor it from the windows machine after the ssh connection is closed



      I've tried using start cmd /k launch.bat but this just runs the .bat in the ssh connection.



      Clarity: It's like a run it remotely from the rpi and check it on the windows machine when I get home situation







      windows command-line ssh






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 23 '18 at 16:55

























      asked Nov 22 '18 at 23:29









      L Smith

      11




      11






















          1 Answer
          1






          active

          oldest

          votes


















          1














          You can look into programs like screen or tmux. They allow you to start a shell in a virtual screen that you can then also view from any other shell (e.g., on the host computer)






          share|improve this answer





















          • The question appears to be asking about opening a CMD.EXE window, running on the Windows computer.
            – Scott
            Nov 23 '18 at 4:02










          • The intention is to monitor the commands run from the rpi on the windows machine?
            – davidbaumann
            Nov 23 '18 at 6:45










          • Thanks for the help but I was more asking what Scott suggested as once the CMD window is opened and executing the command, it will only be monitored from the windows machine. (It's sort of a start it remotely from the rpi and check it on the windows machine when I get home situation)
            – L Smith
            Nov 23 '18 at 16:54










          • Got it. While this is still possible using the tools I mentioned, they are likely not a perfect fit. Using them requires you to open the cmd.exe window yourself to attach to the remotely-launched shell (The window will not open on its own).
            – Christoph Sommer
            Nov 23 '18 at 16:57











          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%2f1377694%2fopen-cmd-on-remote-computer-from-ssh%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














          You can look into programs like screen or tmux. They allow you to start a shell in a virtual screen that you can then also view from any other shell (e.g., on the host computer)






          share|improve this answer





















          • The question appears to be asking about opening a CMD.EXE window, running on the Windows computer.
            – Scott
            Nov 23 '18 at 4:02










          • The intention is to monitor the commands run from the rpi on the windows machine?
            – davidbaumann
            Nov 23 '18 at 6:45










          • Thanks for the help but I was more asking what Scott suggested as once the CMD window is opened and executing the command, it will only be monitored from the windows machine. (It's sort of a start it remotely from the rpi and check it on the windows machine when I get home situation)
            – L Smith
            Nov 23 '18 at 16:54










          • Got it. While this is still possible using the tools I mentioned, they are likely not a perfect fit. Using them requires you to open the cmd.exe window yourself to attach to the remotely-launched shell (The window will not open on its own).
            – Christoph Sommer
            Nov 23 '18 at 16:57
















          1














          You can look into programs like screen or tmux. They allow you to start a shell in a virtual screen that you can then also view from any other shell (e.g., on the host computer)






          share|improve this answer





















          • The question appears to be asking about opening a CMD.EXE window, running on the Windows computer.
            – Scott
            Nov 23 '18 at 4:02










          • The intention is to monitor the commands run from the rpi on the windows machine?
            – davidbaumann
            Nov 23 '18 at 6:45










          • Thanks for the help but I was more asking what Scott suggested as once the CMD window is opened and executing the command, it will only be monitored from the windows machine. (It's sort of a start it remotely from the rpi and check it on the windows machine when I get home situation)
            – L Smith
            Nov 23 '18 at 16:54










          • Got it. While this is still possible using the tools I mentioned, they are likely not a perfect fit. Using them requires you to open the cmd.exe window yourself to attach to the remotely-launched shell (The window will not open on its own).
            – Christoph Sommer
            Nov 23 '18 at 16:57














          1












          1








          1






          You can look into programs like screen or tmux. They allow you to start a shell in a virtual screen that you can then also view from any other shell (e.g., on the host computer)






          share|improve this answer












          You can look into programs like screen or tmux. They allow you to start a shell in a virtual screen that you can then also view from any other shell (e.g., on the host computer)







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 23 '18 at 3:45









          Christoph Sommer

          2094




          2094












          • The question appears to be asking about opening a CMD.EXE window, running on the Windows computer.
            – Scott
            Nov 23 '18 at 4:02










          • The intention is to monitor the commands run from the rpi on the windows machine?
            – davidbaumann
            Nov 23 '18 at 6:45










          • Thanks for the help but I was more asking what Scott suggested as once the CMD window is opened and executing the command, it will only be monitored from the windows machine. (It's sort of a start it remotely from the rpi and check it on the windows machine when I get home situation)
            – L Smith
            Nov 23 '18 at 16:54










          • Got it. While this is still possible using the tools I mentioned, they are likely not a perfect fit. Using them requires you to open the cmd.exe window yourself to attach to the remotely-launched shell (The window will not open on its own).
            – Christoph Sommer
            Nov 23 '18 at 16:57


















          • The question appears to be asking about opening a CMD.EXE window, running on the Windows computer.
            – Scott
            Nov 23 '18 at 4:02










          • The intention is to monitor the commands run from the rpi on the windows machine?
            – davidbaumann
            Nov 23 '18 at 6:45










          • Thanks for the help but I was more asking what Scott suggested as once the CMD window is opened and executing the command, it will only be monitored from the windows machine. (It's sort of a start it remotely from the rpi and check it on the windows machine when I get home situation)
            – L Smith
            Nov 23 '18 at 16:54










          • Got it. While this is still possible using the tools I mentioned, they are likely not a perfect fit. Using them requires you to open the cmd.exe window yourself to attach to the remotely-launched shell (The window will not open on its own).
            – Christoph Sommer
            Nov 23 '18 at 16:57
















          The question appears to be asking about opening a CMD.EXE window, running on the Windows computer.
          – Scott
          Nov 23 '18 at 4:02




          The question appears to be asking about opening a CMD.EXE window, running on the Windows computer.
          – Scott
          Nov 23 '18 at 4:02












          The intention is to monitor the commands run from the rpi on the windows machine?
          – davidbaumann
          Nov 23 '18 at 6:45




          The intention is to monitor the commands run from the rpi on the windows machine?
          – davidbaumann
          Nov 23 '18 at 6:45












          Thanks for the help but I was more asking what Scott suggested as once the CMD window is opened and executing the command, it will only be monitored from the windows machine. (It's sort of a start it remotely from the rpi and check it on the windows machine when I get home situation)
          – L Smith
          Nov 23 '18 at 16:54




          Thanks for the help but I was more asking what Scott suggested as once the CMD window is opened and executing the command, it will only be monitored from the windows machine. (It's sort of a start it remotely from the rpi and check it on the windows machine when I get home situation)
          – L Smith
          Nov 23 '18 at 16:54












          Got it. While this is still possible using the tools I mentioned, they are likely not a perfect fit. Using them requires you to open the cmd.exe window yourself to attach to the remotely-launched shell (The window will not open on its own).
          – Christoph Sommer
          Nov 23 '18 at 16:57




          Got it. While this is still possible using the tools I mentioned, they are likely not a perfect fit. Using them requires you to open the cmd.exe window yourself to attach to the remotely-launched shell (The window will not open on its own).
          – Christoph Sommer
          Nov 23 '18 at 16:57


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f1377694%2fopen-cmd-on-remote-computer-from-ssh%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

          AnyDesk - Fatal Program Failure

          How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

          QoS: MAC-Priority for clients behind a repeater