How can I use the linux terminal to access another file system on a network?











up vote
0
down vote

favorite












Suppose there are several computers networked together. I'd like to know how to use the command prompt in linux to remotely access the file system of another computer. Is this possible?



Thanks!










share|improve this question






















  • Awesome thanks for the detailed help! :D
    – Frank Patton
    yesterday















up vote
0
down vote

favorite












Suppose there are several computers networked together. I'd like to know how to use the command prompt in linux to remotely access the file system of another computer. Is this possible?



Thanks!










share|improve this question






















  • Awesome thanks for the detailed help! :D
    – Frank Patton
    yesterday













up vote
0
down vote

favorite









up vote
0
down vote

favorite











Suppose there are several computers networked together. I'd like to know how to use the command prompt in linux to remotely access the file system of another computer. Is this possible?



Thanks!










share|improve this question













Suppose there are several computers networked together. I'd like to know how to use the command prompt in linux to remotely access the file system of another computer. Is this possible?



Thanks!







linux terminal remote






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 8 at 23:44









Frank Patton

31




31












  • Awesome thanks for the detailed help! :D
    – Frank Patton
    yesterday


















  • Awesome thanks for the detailed help! :D
    – Frank Patton
    yesterday
















Awesome thanks for the detailed help! :D
– Frank Patton
yesterday




Awesome thanks for the detailed help! :D
– Frank Patton
yesterday










2 Answers
2






active

oldest

votes

















up vote
0
down vote



accepted










SCP



When using scp, you have to have an openssh-server on the remote computer you're trying to access. You can check if it's installed with apt-cache policy openssh-server . Then scp is used to fetch a file like this:



scp user@remote-hostname:Documents/file.txt ~/Documents/



or to send a file:



scp ~/Documents/file.txt user@remote-hostname:Documents/



which will prompt you to enter the remote-user's password. The path after the colon (:) assumes the user's home directory, which is why you can use Documents/file.txt instead of /home/user/Documents/file.txt .



NFS



NFS is the linux-only Network File System. I've never used it but you can find some instructions at https://mxlinux.org/wiki/networking/nfs ... However those instructions do not show how to setup security on the shares so that a password is necessary to access the shares.



SAMBA



Samba (SMB/CIFS) is a file server that is compatible with Gnu/Linux and Windows computers. I use samba, but I don't use it to access Windows computers so I don't know if there are any quirks in that use-case (Linux to Windows).
You can find good instructions for setting up samba on a debian-based system (Debian, Ubuntu, Linux-mint, etc) at https://wiki.debian.org/SambaServerSimple:



........................................................



Install Samba Server as root or using sudo



apt-get install samba


Install Samba Client



apt-get install samba-client


And the instructions go on to configuring samba's config file (/etc/samba/smb.conf) and setting up samba passwords (which are separate from your users system-login password but the same password can be used).



........................................................



If you run apt-cache show samba on your machine it shows information on the samba package. One sentence to note:




This package is not required for connecting to existing SMB/CIFS servers (see smbclient) or for mounting remote filesystems (see cifs-utils).




To set up a share that doesn't require entering a password, a paragraph like the one that follows can be added to your /etc/samba/smb.conf :



[sharename]
path = /path/to/share/directory
comment = short description of share
browseable = yes
guest ok = yes
read only = no
create mask = 777


To access a samba share from the file-browser on my pc's, sometimes using the 'browse network' button or menu entry doesn't work. In that case I manually have to type in the samba address into 'pathbar' by clicking in the pathbar, or if you pathbar is in a 'button' view, you can revert it to a pathname by using the keyboard shortcut Ctrl-l (lower-case L). Then type in: smb://IP-address/sharename . For samba-shares that were set up without requiring a password, you can leave the password field empty and press the connect button.






share|improve this answer










New contributor




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

























    up vote
    0
    down vote













    Secure copy (scp) and network file sharing (nfs) are just two of the many solutions. Check them out.






    share|improve this answer





















      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',
      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%2f1373939%2fhow-can-i-use-the-linux-terminal-to-access-another-file-system-on-a-network%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes








      up vote
      0
      down vote



      accepted










      SCP



      When using scp, you have to have an openssh-server on the remote computer you're trying to access. You can check if it's installed with apt-cache policy openssh-server . Then scp is used to fetch a file like this:



      scp user@remote-hostname:Documents/file.txt ~/Documents/



      or to send a file:



      scp ~/Documents/file.txt user@remote-hostname:Documents/



      which will prompt you to enter the remote-user's password. The path after the colon (:) assumes the user's home directory, which is why you can use Documents/file.txt instead of /home/user/Documents/file.txt .



      NFS



      NFS is the linux-only Network File System. I've never used it but you can find some instructions at https://mxlinux.org/wiki/networking/nfs ... However those instructions do not show how to setup security on the shares so that a password is necessary to access the shares.



      SAMBA



      Samba (SMB/CIFS) is a file server that is compatible with Gnu/Linux and Windows computers. I use samba, but I don't use it to access Windows computers so I don't know if there are any quirks in that use-case (Linux to Windows).
      You can find good instructions for setting up samba on a debian-based system (Debian, Ubuntu, Linux-mint, etc) at https://wiki.debian.org/SambaServerSimple:



      ........................................................



      Install Samba Server as root or using sudo



      apt-get install samba


      Install Samba Client



      apt-get install samba-client


      And the instructions go on to configuring samba's config file (/etc/samba/smb.conf) and setting up samba passwords (which are separate from your users system-login password but the same password can be used).



      ........................................................



      If you run apt-cache show samba on your machine it shows information on the samba package. One sentence to note:




      This package is not required for connecting to existing SMB/CIFS servers (see smbclient) or for mounting remote filesystems (see cifs-utils).




      To set up a share that doesn't require entering a password, a paragraph like the one that follows can be added to your /etc/samba/smb.conf :



      [sharename]
      path = /path/to/share/directory
      comment = short description of share
      browseable = yes
      guest ok = yes
      read only = no
      create mask = 777


      To access a samba share from the file-browser on my pc's, sometimes using the 'browse network' button or menu entry doesn't work. In that case I manually have to type in the samba address into 'pathbar' by clicking in the pathbar, or if you pathbar is in a 'button' view, you can revert it to a pathname by using the keyboard shortcut Ctrl-l (lower-case L). Then type in: smb://IP-address/sharename . For samba-shares that were set up without requiring a password, you can leave the password field empty and press the connect button.






      share|improve this answer










      New contributor




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






















        up vote
        0
        down vote



        accepted










        SCP



        When using scp, you have to have an openssh-server on the remote computer you're trying to access. You can check if it's installed with apt-cache policy openssh-server . Then scp is used to fetch a file like this:



        scp user@remote-hostname:Documents/file.txt ~/Documents/



        or to send a file:



        scp ~/Documents/file.txt user@remote-hostname:Documents/



        which will prompt you to enter the remote-user's password. The path after the colon (:) assumes the user's home directory, which is why you can use Documents/file.txt instead of /home/user/Documents/file.txt .



        NFS



        NFS is the linux-only Network File System. I've never used it but you can find some instructions at https://mxlinux.org/wiki/networking/nfs ... However those instructions do not show how to setup security on the shares so that a password is necessary to access the shares.



        SAMBA



        Samba (SMB/CIFS) is a file server that is compatible with Gnu/Linux and Windows computers. I use samba, but I don't use it to access Windows computers so I don't know if there are any quirks in that use-case (Linux to Windows).
        You can find good instructions for setting up samba on a debian-based system (Debian, Ubuntu, Linux-mint, etc) at https://wiki.debian.org/SambaServerSimple:



        ........................................................



        Install Samba Server as root or using sudo



        apt-get install samba


        Install Samba Client



        apt-get install samba-client


        And the instructions go on to configuring samba's config file (/etc/samba/smb.conf) and setting up samba passwords (which are separate from your users system-login password but the same password can be used).



        ........................................................



        If you run apt-cache show samba on your machine it shows information on the samba package. One sentence to note:




        This package is not required for connecting to existing SMB/CIFS servers (see smbclient) or for mounting remote filesystems (see cifs-utils).




        To set up a share that doesn't require entering a password, a paragraph like the one that follows can be added to your /etc/samba/smb.conf :



        [sharename]
        path = /path/to/share/directory
        comment = short description of share
        browseable = yes
        guest ok = yes
        read only = no
        create mask = 777


        To access a samba share from the file-browser on my pc's, sometimes using the 'browse network' button or menu entry doesn't work. In that case I manually have to type in the samba address into 'pathbar' by clicking in the pathbar, or if you pathbar is in a 'button' view, you can revert it to a pathname by using the keyboard shortcut Ctrl-l (lower-case L). Then type in: smb://IP-address/sharename . For samba-shares that were set up without requiring a password, you can leave the password field empty and press the connect button.






        share|improve this answer










        New contributor




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




















          up vote
          0
          down vote



          accepted







          up vote
          0
          down vote



          accepted






          SCP



          When using scp, you have to have an openssh-server on the remote computer you're trying to access. You can check if it's installed with apt-cache policy openssh-server . Then scp is used to fetch a file like this:



          scp user@remote-hostname:Documents/file.txt ~/Documents/



          or to send a file:



          scp ~/Documents/file.txt user@remote-hostname:Documents/



          which will prompt you to enter the remote-user's password. The path after the colon (:) assumes the user's home directory, which is why you can use Documents/file.txt instead of /home/user/Documents/file.txt .



          NFS



          NFS is the linux-only Network File System. I've never used it but you can find some instructions at https://mxlinux.org/wiki/networking/nfs ... However those instructions do not show how to setup security on the shares so that a password is necessary to access the shares.



          SAMBA



          Samba (SMB/CIFS) is a file server that is compatible with Gnu/Linux and Windows computers. I use samba, but I don't use it to access Windows computers so I don't know if there are any quirks in that use-case (Linux to Windows).
          You can find good instructions for setting up samba on a debian-based system (Debian, Ubuntu, Linux-mint, etc) at https://wiki.debian.org/SambaServerSimple:



          ........................................................



          Install Samba Server as root or using sudo



          apt-get install samba


          Install Samba Client



          apt-get install samba-client


          And the instructions go on to configuring samba's config file (/etc/samba/smb.conf) and setting up samba passwords (which are separate from your users system-login password but the same password can be used).



          ........................................................



          If you run apt-cache show samba on your machine it shows information on the samba package. One sentence to note:




          This package is not required for connecting to existing SMB/CIFS servers (see smbclient) or for mounting remote filesystems (see cifs-utils).




          To set up a share that doesn't require entering a password, a paragraph like the one that follows can be added to your /etc/samba/smb.conf :



          [sharename]
          path = /path/to/share/directory
          comment = short description of share
          browseable = yes
          guest ok = yes
          read only = no
          create mask = 777


          To access a samba share from the file-browser on my pc's, sometimes using the 'browse network' button or menu entry doesn't work. In that case I manually have to type in the samba address into 'pathbar' by clicking in the pathbar, or if you pathbar is in a 'button' view, you can revert it to a pathname by using the keyboard shortcut Ctrl-l (lower-case L). Then type in: smb://IP-address/sharename . For samba-shares that were set up without requiring a password, you can leave the password field empty and press the connect button.






          share|improve this answer










          New contributor




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









          SCP



          When using scp, you have to have an openssh-server on the remote computer you're trying to access. You can check if it's installed with apt-cache policy openssh-server . Then scp is used to fetch a file like this:



          scp user@remote-hostname:Documents/file.txt ~/Documents/



          or to send a file:



          scp ~/Documents/file.txt user@remote-hostname:Documents/



          which will prompt you to enter the remote-user's password. The path after the colon (:) assumes the user's home directory, which is why you can use Documents/file.txt instead of /home/user/Documents/file.txt .



          NFS



          NFS is the linux-only Network File System. I've never used it but you can find some instructions at https://mxlinux.org/wiki/networking/nfs ... However those instructions do not show how to setup security on the shares so that a password is necessary to access the shares.



          SAMBA



          Samba (SMB/CIFS) is a file server that is compatible with Gnu/Linux and Windows computers. I use samba, but I don't use it to access Windows computers so I don't know if there are any quirks in that use-case (Linux to Windows).
          You can find good instructions for setting up samba on a debian-based system (Debian, Ubuntu, Linux-mint, etc) at https://wiki.debian.org/SambaServerSimple:



          ........................................................



          Install Samba Server as root or using sudo



          apt-get install samba


          Install Samba Client



          apt-get install samba-client


          And the instructions go on to configuring samba's config file (/etc/samba/smb.conf) and setting up samba passwords (which are separate from your users system-login password but the same password can be used).



          ........................................................



          If you run apt-cache show samba on your machine it shows information on the samba package. One sentence to note:




          This package is not required for connecting to existing SMB/CIFS servers (see smbclient) or for mounting remote filesystems (see cifs-utils).




          To set up a share that doesn't require entering a password, a paragraph like the one that follows can be added to your /etc/samba/smb.conf :



          [sharename]
          path = /path/to/share/directory
          comment = short description of share
          browseable = yes
          guest ok = yes
          read only = no
          create mask = 777


          To access a samba share from the file-browser on my pc's, sometimes using the 'browse network' button or menu entry doesn't work. In that case I manually have to type in the samba address into 'pathbar' by clicking in the pathbar, or if you pathbar is in a 'button' view, you can revert it to a pathname by using the keyboard shortcut Ctrl-l (lower-case L). Then type in: smb://IP-address/sharename . For samba-shares that were set up without requiring a password, you can leave the password field empty and press the connect button.







          share|improve this answer










          New contributor




          oksage 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








          edited 2 days ago





















          New contributor




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









          answered 2 days ago









          oksage

          192




          192




          New contributor




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





          New contributor





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






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
























              up vote
              0
              down vote













              Secure copy (scp) and network file sharing (nfs) are just two of the many solutions. Check them out.






              share|improve this answer

























                up vote
                0
                down vote













                Secure copy (scp) and network file sharing (nfs) are just two of the many solutions. Check them out.






                share|improve this answer























                  up vote
                  0
                  down vote










                  up vote
                  0
                  down vote









                  Secure copy (scp) and network file sharing (nfs) are just two of the many solutions. Check them out.






                  share|improve this answer












                  Secure copy (scp) and network file sharing (nfs) are just two of the many solutions. Check them out.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Nov 9 at 2:56









                  Gerard H. Pille

                  46926




                  46926






























                       

                      draft saved


                      draft discarded



















































                       


                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1373939%2fhow-can-i-use-the-linux-terminal-to-access-another-file-system-on-a-network%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

                      flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

                      Mangá

                       ⁒  ․,‪⁊‑⁙ ⁖, ⁇‒※‌, †,⁖‗‌⁝    ‾‸⁘,‖⁔⁣,⁂‾
”‑,‥–,‬ ,⁀‹⁋‴⁑ ‒ ,‴⁋”‼ ⁨,‷⁔„ ‰′,‐‚ ‥‡‎“‷⁃⁨⁅⁣,⁔
⁇‘⁔⁡⁏⁌⁡‿‶‏⁨ ⁣⁕⁖⁨⁩⁥‽⁀  ‴‬⁜‟ ⁃‣‧⁕‮ …‍⁨‴ ⁩,⁚⁖‫ ,‵ ⁀,‮⁝‣‣ ⁑  ⁂– ․, ‾‽ ‏⁁“⁗‸ ‾… ‹‡⁌⁎‸‘ ‡⁏⁌‪ ‵⁛ ‎⁨ ―⁦⁤⁄⁕