Is it possible to transfer files between 2 PCs connected to a single router?











up vote
3
down vote

favorite












I have 2 laptops plugged into a ZTE ZXA10-F660 PON (like a 4 port ethernet router but with a fiber optic WAN connection). One laptop is running Linux Mint 19 Cinnamon (enp4s0) and the other is running Linux Mint 18.3 Cinnamon (eno1).





Mint 19



$ ifconfig enp4s0
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::c904:de40:7ade:60e1 prefixlen 64 scopeid 0x20<link>
ether 44:8a:5b:6e:9e:5a txqueuelen 1000 (Ethernet)
RX packets 13631 bytes 12021145 (12.0 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10498 bytes 2776639 (2.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19




Mint 18.3



$ ifconfig eno1
eno1 Link encap:Ethernet HWaddr d4:be:d9:69:29:af
inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::bdd7:8618:4d09:f574/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2621 errors:0 dropped:0 overruns:0 frame:0
TX packets:3617 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:394623 (394.6 KB) TX bytes:318527 (318.5 KB)
Interrupt:20 Memory:f7e00000-f7e20000




I've been using a portable external hard drive or a USB flash pen drive to transfer files between the two laptops for years because I find connecting two PCs via a LAN to be far beyond merely impossible.



I stumbled across LAN-Share (https://github.com/abdularis/LAN-Share) and fantasized that it would let me transfer files between the two laptops by going through my PON. Neither laptop can see the other on my LAN when both are running LAN-Share. There is a PON LED glowing for each ethernet connector plugged into a PON LAN port. Both laptops connect to the WWW with no problems and always have been able to do so, even when both were online at the same time.



A few magazine articles said LAN-share was really easy to use but the authors of the articles never met me. I installed samba on both laptops even though I don't know if I need it. I don't know what I do need. I don't know if what I want to do is even possible.



Is it possible to do what I want I to do?










share|improve this question
























  • I was able to get ssh to connect two linux laptops on home wifi router base on askubuntu.com/questions/305229/…
    – Scott Stensland
    Aug 5 at 19:26















up vote
3
down vote

favorite












I have 2 laptops plugged into a ZTE ZXA10-F660 PON (like a 4 port ethernet router but with a fiber optic WAN connection). One laptop is running Linux Mint 19 Cinnamon (enp4s0) and the other is running Linux Mint 18.3 Cinnamon (eno1).





Mint 19



$ ifconfig enp4s0
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::c904:de40:7ade:60e1 prefixlen 64 scopeid 0x20<link>
ether 44:8a:5b:6e:9e:5a txqueuelen 1000 (Ethernet)
RX packets 13631 bytes 12021145 (12.0 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10498 bytes 2776639 (2.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19




Mint 18.3



$ ifconfig eno1
eno1 Link encap:Ethernet HWaddr d4:be:d9:69:29:af
inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::bdd7:8618:4d09:f574/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2621 errors:0 dropped:0 overruns:0 frame:0
TX packets:3617 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:394623 (394.6 KB) TX bytes:318527 (318.5 KB)
Interrupt:20 Memory:f7e00000-f7e20000




I've been using a portable external hard drive or a USB flash pen drive to transfer files between the two laptops for years because I find connecting two PCs via a LAN to be far beyond merely impossible.



I stumbled across LAN-Share (https://github.com/abdularis/LAN-Share) and fantasized that it would let me transfer files between the two laptops by going through my PON. Neither laptop can see the other on my LAN when both are running LAN-Share. There is a PON LED glowing for each ethernet connector plugged into a PON LAN port. Both laptops connect to the WWW with no problems and always have been able to do so, even when both were online at the same time.



A few magazine articles said LAN-share was really easy to use but the authors of the articles never met me. I installed samba on both laptops even though I don't know if I need it. I don't know what I do need. I don't know if what I want to do is even possible.



Is it possible to do what I want I to do?










share|improve this question
























  • I was able to get ssh to connect two linux laptops on home wifi router base on askubuntu.com/questions/305229/…
    – Scott Stensland
    Aug 5 at 19:26













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I have 2 laptops plugged into a ZTE ZXA10-F660 PON (like a 4 port ethernet router but with a fiber optic WAN connection). One laptop is running Linux Mint 19 Cinnamon (enp4s0) and the other is running Linux Mint 18.3 Cinnamon (eno1).





Mint 19



$ ifconfig enp4s0
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::c904:de40:7ade:60e1 prefixlen 64 scopeid 0x20<link>
ether 44:8a:5b:6e:9e:5a txqueuelen 1000 (Ethernet)
RX packets 13631 bytes 12021145 (12.0 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10498 bytes 2776639 (2.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19




Mint 18.3



$ ifconfig eno1
eno1 Link encap:Ethernet HWaddr d4:be:d9:69:29:af
inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::bdd7:8618:4d09:f574/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2621 errors:0 dropped:0 overruns:0 frame:0
TX packets:3617 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:394623 (394.6 KB) TX bytes:318527 (318.5 KB)
Interrupt:20 Memory:f7e00000-f7e20000




I've been using a portable external hard drive or a USB flash pen drive to transfer files between the two laptops for years because I find connecting two PCs via a LAN to be far beyond merely impossible.



I stumbled across LAN-Share (https://github.com/abdularis/LAN-Share) and fantasized that it would let me transfer files between the two laptops by going through my PON. Neither laptop can see the other on my LAN when both are running LAN-Share. There is a PON LED glowing for each ethernet connector plugged into a PON LAN port. Both laptops connect to the WWW with no problems and always have been able to do so, even when both were online at the same time.



A few magazine articles said LAN-share was really easy to use but the authors of the articles never met me. I installed samba on both laptops even though I don't know if I need it. I don't know what I do need. I don't know if what I want to do is even possible.



Is it possible to do what I want I to do?










share|improve this question















I have 2 laptops plugged into a ZTE ZXA10-F660 PON (like a 4 port ethernet router but with a fiber optic WAN connection). One laptop is running Linux Mint 19 Cinnamon (enp4s0) and the other is running Linux Mint 18.3 Cinnamon (eno1).





Mint 19



$ ifconfig enp4s0
enp4s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.11 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::c904:de40:7ade:60e1 prefixlen 64 scopeid 0x20<link>
ether 44:8a:5b:6e:9e:5a txqueuelen 1000 (Ethernet)
RX packets 13631 bytes 12021145 (12.0 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 10498 bytes 2776639 (2.7 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 19




Mint 18.3



$ ifconfig eno1
eno1 Link encap:Ethernet HWaddr d4:be:d9:69:29:af
inet addr:192.168.1.31 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::bdd7:8618:4d09:f574/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2621 errors:0 dropped:0 overruns:0 frame:0
TX packets:3617 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:394623 (394.6 KB) TX bytes:318527 (318.5 KB)
Interrupt:20 Memory:f7e00000-f7e20000




I've been using a portable external hard drive or a USB flash pen drive to transfer files between the two laptops for years because I find connecting two PCs via a LAN to be far beyond merely impossible.



I stumbled across LAN-Share (https://github.com/abdularis/LAN-Share) and fantasized that it would let me transfer files between the two laptops by going through my PON. Neither laptop can see the other on my LAN when both are running LAN-Share. There is a PON LED glowing for each ethernet connector plugged into a PON LAN port. Both laptops connect to the WWW with no problems and always have been able to do so, even when both were online at the same time.



A few magazine articles said LAN-share was really easy to use but the authors of the articles never met me. I installed samba on both laptops even though I don't know if I need it. I don't know what I do need. I don't know if what I want to do is even possible.



Is it possible to do what I want I to do?







networking files remote






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 2 at 23:27









Gilles

525k12710491578




525k12710491578










asked Aug 5 at 14:12









Don Nadie

5017




5017












  • I was able to get ssh to connect two linux laptops on home wifi router base on askubuntu.com/questions/305229/…
    – Scott Stensland
    Aug 5 at 19:26


















  • I was able to get ssh to connect two linux laptops on home wifi router base on askubuntu.com/questions/305229/…
    – Scott Stensland
    Aug 5 at 19:26
















I was able to get ssh to connect two linux laptops on home wifi router base on askubuntu.com/questions/305229/…
– Scott Stensland
Aug 5 at 19:26




I was able to get ssh to connect two linux laptops on home wifi router base on askubuntu.com/questions/305229/…
– Scott Stensland
Aug 5 at 19:26










2 Answers
2






active

oldest

votes

















up vote
6
down vote













If they are on the same network, or have a routed path between them, then there many ways that you can pass files back and forth directly.



Doing so securely is a different matter.



Easiest while keeping security in mind is to use SSH and its various utilities -



You can connect via scp or sftp by simply installing the openssh-server package on the remote machine.



scp ~/Documents/MyDocument.odt remoteuser@remotehost:~/Documents/


or



sftp remoteuser@remotehost
cd ~/Documents
lcd ~/Documents
mput MyDocument.odt


You can also install sshfs and mount the other machine's file system over ssh -



mkdir ~/remote-home 
sshfs remoteuser@remote.host:/home/remoteuser ~/remote-home


And then the contents of your ~/remote-home will be your home directory on the remote machine - you can open, save, copy, etc. as if it were part of your local file system. When you are done, simply use sudo to un-mount it -



sudo umount /home/localuser/remote-home


Can't use the ~/ reference in this case, since sudo will make it seem like it should be the root user's home directory, not your local user account.



You could even look into the possibility of using rsync over a ssh tunnel to keep entire directory structures synchronized between two machines set via cron to update every so often if that would fit your work flow better.



Quick, easy, Just Works, secure.






share|improve this answer



















  • 3




    If you run sshfs under your normal user, you don't need sudo or root permissions in any way: use fusermount -u ~/remote-home (fusermount works for any FUSE filesystem mounted with user permission)
    – crater2150
    Aug 5 at 17:17


















up vote
0
down vote













You might use the detour through "the cloud" to transfer files between the two.
You could use transfer protocols like ftp or ssh (including sftp), (one of) which might already be installed on either node but might need some configuration.
You could use networked shared / exported "disks" with samba or nfs, mount remotely and then use like a local disk.






share|improve this answer





















    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',
    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%2f460657%2fis-it-possible-to-transfer-files-between-2-pcs-connected-to-a-single-router%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
    6
    down vote













    If they are on the same network, or have a routed path between them, then there many ways that you can pass files back and forth directly.



    Doing so securely is a different matter.



    Easiest while keeping security in mind is to use SSH and its various utilities -



    You can connect via scp or sftp by simply installing the openssh-server package on the remote machine.



    scp ~/Documents/MyDocument.odt remoteuser@remotehost:~/Documents/


    or



    sftp remoteuser@remotehost
    cd ~/Documents
    lcd ~/Documents
    mput MyDocument.odt


    You can also install sshfs and mount the other machine's file system over ssh -



    mkdir ~/remote-home 
    sshfs remoteuser@remote.host:/home/remoteuser ~/remote-home


    And then the contents of your ~/remote-home will be your home directory on the remote machine - you can open, save, copy, etc. as if it were part of your local file system. When you are done, simply use sudo to un-mount it -



    sudo umount /home/localuser/remote-home


    Can't use the ~/ reference in this case, since sudo will make it seem like it should be the root user's home directory, not your local user account.



    You could even look into the possibility of using rsync over a ssh tunnel to keep entire directory structures synchronized between two machines set via cron to update every so often if that would fit your work flow better.



    Quick, easy, Just Works, secure.






    share|improve this answer



















    • 3




      If you run sshfs under your normal user, you don't need sudo or root permissions in any way: use fusermount -u ~/remote-home (fusermount works for any FUSE filesystem mounted with user permission)
      – crater2150
      Aug 5 at 17:17















    up vote
    6
    down vote













    If they are on the same network, or have a routed path between them, then there many ways that you can pass files back and forth directly.



    Doing so securely is a different matter.



    Easiest while keeping security in mind is to use SSH and its various utilities -



    You can connect via scp or sftp by simply installing the openssh-server package on the remote machine.



    scp ~/Documents/MyDocument.odt remoteuser@remotehost:~/Documents/


    or



    sftp remoteuser@remotehost
    cd ~/Documents
    lcd ~/Documents
    mput MyDocument.odt


    You can also install sshfs and mount the other machine's file system over ssh -



    mkdir ~/remote-home 
    sshfs remoteuser@remote.host:/home/remoteuser ~/remote-home


    And then the contents of your ~/remote-home will be your home directory on the remote machine - you can open, save, copy, etc. as if it were part of your local file system. When you are done, simply use sudo to un-mount it -



    sudo umount /home/localuser/remote-home


    Can't use the ~/ reference in this case, since sudo will make it seem like it should be the root user's home directory, not your local user account.



    You could even look into the possibility of using rsync over a ssh tunnel to keep entire directory structures synchronized between two machines set via cron to update every so often if that would fit your work flow better.



    Quick, easy, Just Works, secure.






    share|improve this answer



















    • 3




      If you run sshfs under your normal user, you don't need sudo or root permissions in any way: use fusermount -u ~/remote-home (fusermount works for any FUSE filesystem mounted with user permission)
      – crater2150
      Aug 5 at 17:17













    up vote
    6
    down vote










    up vote
    6
    down vote









    If they are on the same network, or have a routed path between them, then there many ways that you can pass files back and forth directly.



    Doing so securely is a different matter.



    Easiest while keeping security in mind is to use SSH and its various utilities -



    You can connect via scp or sftp by simply installing the openssh-server package on the remote machine.



    scp ~/Documents/MyDocument.odt remoteuser@remotehost:~/Documents/


    or



    sftp remoteuser@remotehost
    cd ~/Documents
    lcd ~/Documents
    mput MyDocument.odt


    You can also install sshfs and mount the other machine's file system over ssh -



    mkdir ~/remote-home 
    sshfs remoteuser@remote.host:/home/remoteuser ~/remote-home


    And then the contents of your ~/remote-home will be your home directory on the remote machine - you can open, save, copy, etc. as if it were part of your local file system. When you are done, simply use sudo to un-mount it -



    sudo umount /home/localuser/remote-home


    Can't use the ~/ reference in this case, since sudo will make it seem like it should be the root user's home directory, not your local user account.



    You could even look into the possibility of using rsync over a ssh tunnel to keep entire directory structures synchronized between two machines set via cron to update every so often if that would fit your work flow better.



    Quick, easy, Just Works, secure.






    share|improve this answer














    If they are on the same network, or have a routed path between them, then there many ways that you can pass files back and forth directly.



    Doing so securely is a different matter.



    Easiest while keeping security in mind is to use SSH and its various utilities -



    You can connect via scp or sftp by simply installing the openssh-server package on the remote machine.



    scp ~/Documents/MyDocument.odt remoteuser@remotehost:~/Documents/


    or



    sftp remoteuser@remotehost
    cd ~/Documents
    lcd ~/Documents
    mput MyDocument.odt


    You can also install sshfs and mount the other machine's file system over ssh -



    mkdir ~/remote-home 
    sshfs remoteuser@remote.host:/home/remoteuser ~/remote-home


    And then the contents of your ~/remote-home will be your home directory on the remote machine - you can open, save, copy, etc. as if it were part of your local file system. When you are done, simply use sudo to un-mount it -



    sudo umount /home/localuser/remote-home


    Can't use the ~/ reference in this case, since sudo will make it seem like it should be the root user's home directory, not your local user account.



    You could even look into the possibility of using rsync over a ssh tunnel to keep entire directory structures synchronized between two machines set via cron to update every so often if that would fit your work flow better.



    Quick, easy, Just Works, secure.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Aug 6 at 3:25









    slm

    246k66506673




    246k66506673










    answered Aug 5 at 16:24









    ivanivan

    3,4221414




    3,4221414








    • 3




      If you run sshfs under your normal user, you don't need sudo or root permissions in any way: use fusermount -u ~/remote-home (fusermount works for any FUSE filesystem mounted with user permission)
      – crater2150
      Aug 5 at 17:17














    • 3




      If you run sshfs under your normal user, you don't need sudo or root permissions in any way: use fusermount -u ~/remote-home (fusermount works for any FUSE filesystem mounted with user permission)
      – crater2150
      Aug 5 at 17:17








    3




    3




    If you run sshfs under your normal user, you don't need sudo or root permissions in any way: use fusermount -u ~/remote-home (fusermount works for any FUSE filesystem mounted with user permission)
    – crater2150
    Aug 5 at 17:17




    If you run sshfs under your normal user, you don't need sudo or root permissions in any way: use fusermount -u ~/remote-home (fusermount works for any FUSE filesystem mounted with user permission)
    – crater2150
    Aug 5 at 17:17












    up vote
    0
    down vote













    You might use the detour through "the cloud" to transfer files between the two.
    You could use transfer protocols like ftp or ssh (including sftp), (one of) which might already be installed on either node but might need some configuration.
    You could use networked shared / exported "disks" with samba or nfs, mount remotely and then use like a local disk.






    share|improve this answer

























      up vote
      0
      down vote













      You might use the detour through "the cloud" to transfer files between the two.
      You could use transfer protocols like ftp or ssh (including sftp), (one of) which might already be installed on either node but might need some configuration.
      You could use networked shared / exported "disks" with samba or nfs, mount remotely and then use like a local disk.






      share|improve this answer























        up vote
        0
        down vote










        up vote
        0
        down vote









        You might use the detour through "the cloud" to transfer files between the two.
        You could use transfer protocols like ftp or ssh (including sftp), (one of) which might already be installed on either node but might need some configuration.
        You could use networked shared / exported "disks" with samba or nfs, mount remotely and then use like a local disk.






        share|improve this answer












        You might use the detour through "the cloud" to transfer files between the two.
        You could use transfer protocols like ftp or ssh (including sftp), (one of) which might already be installed on either node but might need some configuration.
        You could use networked shared / exported "disks" with samba or nfs, mount remotely and then use like a local disk.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Aug 5 at 14:38









        RudiC

        3,8791312




        3,8791312






























            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.





            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%2funix.stackexchange.com%2fquestions%2f460657%2fis-it-possible-to-transfer-files-between-2-pcs-connected-to-a-single-router%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

            Morgemoulin

            Scott Moir

            Souastre