ssh -X to open a file manager












2















I have to machines running Ubuntu 18.10



When ssh -X to another computer



  ssh -X assistant@pc.local


firefox and google-chrome could be opened at the current machine with firefox



firefox  
google-chrome


However, if tried to open the files manager with



xdg-open .
#or
nautilus .


the file manager is launched from the desktop of remote machine rather than the current.










share|improve this question







New contributor




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

























    2















    I have to machines running Ubuntu 18.10



    When ssh -X to another computer



      ssh -X assistant@pc.local


    firefox and google-chrome could be opened at the current machine with firefox



    firefox  
    google-chrome


    However, if tried to open the files manager with



    xdg-open .
    #or
    nautilus .


    the file manager is launched from the desktop of remote machine rather than the current.










    share|improve this question







    New contributor




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























      2












      2








      2








      I have to machines running Ubuntu 18.10



      When ssh -X to another computer



        ssh -X assistant@pc.local


      firefox and google-chrome could be opened at the current machine with firefox



      firefox  
      google-chrome


      However, if tried to open the files manager with



      xdg-open .
      #or
      nautilus .


      the file manager is launched from the desktop of remote machine rather than the current.










      share|improve this question







      New contributor




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












      I have to machines running Ubuntu 18.10



      When ssh -X to another computer



        ssh -X assistant@pc.local


      firefox and google-chrome could be opened at the current machine with firefox



      firefox  
      google-chrome


      However, if tried to open the files manager with



      xdg-open .
      #or
      nautilus .


      the file manager is launched from the desktop of remote machine rather than the current.







      ssh x11-forwarding






      share|improve this question







      New contributor




      Alice 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




      Alice 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




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









      asked Jan 14 at 5:50









      AliceAlice

      1177




      1177




      New contributor




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





      New contributor





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






      Alice 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


















          3














          You need the --new-window option for Nautilus:



          ssh -X remote-machine nautilus --new-window





          share|improve this answer



















          • 1





            Otherwise you should kill all Nautilus instances on the remote machine before launch it "locally".

            – pa4080
            2 days ago











          • In cases like this, we don't want to kill nautilus in the remote computer. Otherwise this would be an attractive solution, but it does not work for me in 18.04.1 LTS (the remote computer, the server, is running standard Ubuntu 18.04.1 LTS). The nautiluswindow is still opened on the remote computer's desktop. Does it work with Ubuntu 18.10?

            – sudodus
            2 days ago








          • 1





            @sudodus - Before I posted the answer, I tested it between 2 Ubuntu 18.04 laptops and it worked well. For the purposes of debugging, you could try pa4080's suggestion and kill Nautilus first. Also, check your ~/.ssh/config file options which may cause this to not work for you.

            – bitinerant
            2 days ago











          • Good, it works for you between 2 Ubuntu 18.04 laptops :-) I have not added anything special into my ~/.ssh/config but still it is failing for me, while pcmanfm works without any problems. Anyway, now the OP, @Alice, has two options. If your solution works for her, I will delete my answer, because she wants to run nautilus.

            – sudodus
            2 days ago











          • @Alice, I tested with a live session of Ubuntu 18.10 as the remote system, server. I installed openssh-server and created a (non-blank) password, which made it possible to log in via ssh -X, and this way I managed to get the nautilus window in my local desktop (in the client computer). So you will probably succeed according to this answer :-)

            – sudodus
            2 days ago











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "89"
          };
          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
          });


          }
          });






          Alice 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%2faskubuntu.com%2fquestions%2f1109531%2fssh-x-to-open-a-file-manager%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









          3














          You need the --new-window option for Nautilus:



          ssh -X remote-machine nautilus --new-window





          share|improve this answer



















          • 1





            Otherwise you should kill all Nautilus instances on the remote machine before launch it "locally".

            – pa4080
            2 days ago











          • In cases like this, we don't want to kill nautilus in the remote computer. Otherwise this would be an attractive solution, but it does not work for me in 18.04.1 LTS (the remote computer, the server, is running standard Ubuntu 18.04.1 LTS). The nautiluswindow is still opened on the remote computer's desktop. Does it work with Ubuntu 18.10?

            – sudodus
            2 days ago








          • 1





            @sudodus - Before I posted the answer, I tested it between 2 Ubuntu 18.04 laptops and it worked well. For the purposes of debugging, you could try pa4080's suggestion and kill Nautilus first. Also, check your ~/.ssh/config file options which may cause this to not work for you.

            – bitinerant
            2 days ago











          • Good, it works for you between 2 Ubuntu 18.04 laptops :-) I have not added anything special into my ~/.ssh/config but still it is failing for me, while pcmanfm works without any problems. Anyway, now the OP, @Alice, has two options. If your solution works for her, I will delete my answer, because she wants to run nautilus.

            – sudodus
            2 days ago











          • @Alice, I tested with a live session of Ubuntu 18.10 as the remote system, server. I installed openssh-server and created a (non-blank) password, which made it possible to log in via ssh -X, and this way I managed to get the nautilus window in my local desktop (in the client computer). So you will probably succeed according to this answer :-)

            – sudodus
            2 days ago
















          3














          You need the --new-window option for Nautilus:



          ssh -X remote-machine nautilus --new-window





          share|improve this answer



















          • 1





            Otherwise you should kill all Nautilus instances on the remote machine before launch it "locally".

            – pa4080
            2 days ago











          • In cases like this, we don't want to kill nautilus in the remote computer. Otherwise this would be an attractive solution, but it does not work for me in 18.04.1 LTS (the remote computer, the server, is running standard Ubuntu 18.04.1 LTS). The nautiluswindow is still opened on the remote computer's desktop. Does it work with Ubuntu 18.10?

            – sudodus
            2 days ago








          • 1





            @sudodus - Before I posted the answer, I tested it between 2 Ubuntu 18.04 laptops and it worked well. For the purposes of debugging, you could try pa4080's suggestion and kill Nautilus first. Also, check your ~/.ssh/config file options which may cause this to not work for you.

            – bitinerant
            2 days ago











          • Good, it works for you between 2 Ubuntu 18.04 laptops :-) I have not added anything special into my ~/.ssh/config but still it is failing for me, while pcmanfm works without any problems. Anyway, now the OP, @Alice, has two options. If your solution works for her, I will delete my answer, because she wants to run nautilus.

            – sudodus
            2 days ago











          • @Alice, I tested with a live session of Ubuntu 18.10 as the remote system, server. I installed openssh-server and created a (non-blank) password, which made it possible to log in via ssh -X, and this way I managed to get the nautilus window in my local desktop (in the client computer). So you will probably succeed according to this answer :-)

            – sudodus
            2 days ago














          3












          3








          3







          You need the --new-window option for Nautilus:



          ssh -X remote-machine nautilus --new-window





          share|improve this answer













          You need the --new-window option for Nautilus:



          ssh -X remote-machine nautilus --new-window






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Jan 14 at 6:37









          bitinerantbitinerant

          913




          913








          • 1





            Otherwise you should kill all Nautilus instances on the remote machine before launch it "locally".

            – pa4080
            2 days ago











          • In cases like this, we don't want to kill nautilus in the remote computer. Otherwise this would be an attractive solution, but it does not work for me in 18.04.1 LTS (the remote computer, the server, is running standard Ubuntu 18.04.1 LTS). The nautiluswindow is still opened on the remote computer's desktop. Does it work with Ubuntu 18.10?

            – sudodus
            2 days ago








          • 1





            @sudodus - Before I posted the answer, I tested it between 2 Ubuntu 18.04 laptops and it worked well. For the purposes of debugging, you could try pa4080's suggestion and kill Nautilus first. Also, check your ~/.ssh/config file options which may cause this to not work for you.

            – bitinerant
            2 days ago











          • Good, it works for you between 2 Ubuntu 18.04 laptops :-) I have not added anything special into my ~/.ssh/config but still it is failing for me, while pcmanfm works without any problems. Anyway, now the OP, @Alice, has two options. If your solution works for her, I will delete my answer, because she wants to run nautilus.

            – sudodus
            2 days ago











          • @Alice, I tested with a live session of Ubuntu 18.10 as the remote system, server. I installed openssh-server and created a (non-blank) password, which made it possible to log in via ssh -X, and this way I managed to get the nautilus window in my local desktop (in the client computer). So you will probably succeed according to this answer :-)

            – sudodus
            2 days ago














          • 1





            Otherwise you should kill all Nautilus instances on the remote machine before launch it "locally".

            – pa4080
            2 days ago











          • In cases like this, we don't want to kill nautilus in the remote computer. Otherwise this would be an attractive solution, but it does not work for me in 18.04.1 LTS (the remote computer, the server, is running standard Ubuntu 18.04.1 LTS). The nautiluswindow is still opened on the remote computer's desktop. Does it work with Ubuntu 18.10?

            – sudodus
            2 days ago








          • 1





            @sudodus - Before I posted the answer, I tested it between 2 Ubuntu 18.04 laptops and it worked well. For the purposes of debugging, you could try pa4080's suggestion and kill Nautilus first. Also, check your ~/.ssh/config file options which may cause this to not work for you.

            – bitinerant
            2 days ago











          • Good, it works for you between 2 Ubuntu 18.04 laptops :-) I have not added anything special into my ~/.ssh/config but still it is failing for me, while pcmanfm works without any problems. Anyway, now the OP, @Alice, has two options. If your solution works for her, I will delete my answer, because she wants to run nautilus.

            – sudodus
            2 days ago











          • @Alice, I tested with a live session of Ubuntu 18.10 as the remote system, server. I installed openssh-server and created a (non-blank) password, which made it possible to log in via ssh -X, and this way I managed to get the nautilus window in my local desktop (in the client computer). So you will probably succeed according to this answer :-)

            – sudodus
            2 days ago








          1




          1





          Otherwise you should kill all Nautilus instances on the remote machine before launch it "locally".

          – pa4080
          2 days ago





          Otherwise you should kill all Nautilus instances on the remote machine before launch it "locally".

          – pa4080
          2 days ago













          In cases like this, we don't want to kill nautilus in the remote computer. Otherwise this would be an attractive solution, but it does not work for me in 18.04.1 LTS (the remote computer, the server, is running standard Ubuntu 18.04.1 LTS). The nautiluswindow is still opened on the remote computer's desktop. Does it work with Ubuntu 18.10?

          – sudodus
          2 days ago







          In cases like this, we don't want to kill nautilus in the remote computer. Otherwise this would be an attractive solution, but it does not work for me in 18.04.1 LTS (the remote computer, the server, is running standard Ubuntu 18.04.1 LTS). The nautiluswindow is still opened on the remote computer's desktop. Does it work with Ubuntu 18.10?

          – sudodus
          2 days ago






          1




          1





          @sudodus - Before I posted the answer, I tested it between 2 Ubuntu 18.04 laptops and it worked well. For the purposes of debugging, you could try pa4080's suggestion and kill Nautilus first. Also, check your ~/.ssh/config file options which may cause this to not work for you.

          – bitinerant
          2 days ago





          @sudodus - Before I posted the answer, I tested it between 2 Ubuntu 18.04 laptops and it worked well. For the purposes of debugging, you could try pa4080's suggestion and kill Nautilus first. Also, check your ~/.ssh/config file options which may cause this to not work for you.

          – bitinerant
          2 days ago













          Good, it works for you between 2 Ubuntu 18.04 laptops :-) I have not added anything special into my ~/.ssh/config but still it is failing for me, while pcmanfm works without any problems. Anyway, now the OP, @Alice, has two options. If your solution works for her, I will delete my answer, because she wants to run nautilus.

          – sudodus
          2 days ago





          Good, it works for you between 2 Ubuntu 18.04 laptops :-) I have not added anything special into my ~/.ssh/config but still it is failing for me, while pcmanfm works without any problems. Anyway, now the OP, @Alice, has two options. If your solution works for her, I will delete my answer, because she wants to run nautilus.

          – sudodus
          2 days ago













          @Alice, I tested with a live session of Ubuntu 18.10 as the remote system, server. I installed openssh-server and created a (non-blank) password, which made it possible to log in via ssh -X, and this way I managed to get the nautilus window in my local desktop (in the client computer). So you will probably succeed according to this answer :-)

          – sudodus
          2 days ago





          @Alice, I tested with a live session of Ubuntu 18.10 as the remote system, server. I installed openssh-server and created a (non-blank) password, which made it possible to log in via ssh -X, and this way I managed to get the nautilus window in my local desktop (in the client computer). So you will probably succeed according to this answer :-)

          – sudodus
          2 days ago










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










          draft saved

          draft discarded


















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













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












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
















          Thanks for contributing an answer to Ask Ubuntu!


          • 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%2faskubuntu.com%2fquestions%2f1109531%2fssh-x-to-open-a-file-manager%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

          An IMO inspired problem

          Management

          Has there ever been an instance of an active nuclear power plant within or near a war zone?