Connect 2 laptops running Mint via ethernet

Questions about Wi-Fi and other network devices, file sharing, firewalls, connection sharing etc
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
icecake
Level 1
Level 1
Posts: 37
Joined: Tue Oct 27, 2020 6:29 am

Connect 2 laptops running Mint via ethernet

Post by icecake »

Hello,
I have two laptops running Mint 20.01. Laptop 1 will have a hard drive connected via USB and mounted in, say, /mnt/hdd.

I want laptop 2 to be connected to laptop 1 and be able to transfer files to this hard drive (as well as laptop 1).

I think I need to do this via ethernet and have ordered a crossover cable but don't have it yet.

There'll be no internet connection or security issues what would be the way to get this working in Mint please? Networking is something I never got into.

Thanks for any help.
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
manyroads
Level 5
Level 5
Posts: 586
Joined: Wed Mar 30, 2011 11:14 am
Location: just around the corner
Contact:

Re: Connect 2 laptops running Mint via ethernet

Post by manyroads »

Time to start reading how-to network (connect) two Linux PCs.
You might want to start here:
viewtopic.php?t=301842
Pax vobiscum,
...mark
SwayWM, i3wm, bspwm, hlwm, dwm
Professional Genealogist & Technologist
(http://eirenicon.org & http://many-roads.com)
icecake
Level 1
Level 1
Posts: 37
Joined: Tue Oct 27, 2020 6:29 am

Re: Connect 2 laptops running Mint via ethernet

Post by icecake »

Thanks for pointing me in the right direction, I now know how to connect via SSH and mount remote directory using SSHFS which is what I wanted.

So far, though, I'm doing this via my router where each computer has a static IP address that I've assigned. If I connect two computers together directly, how will that work with SSH? My cable hasn't arrived yet so can't try at the moment.

Thanks for any help.
m00tpoint
Level 1
Level 1
Posts: 34
Joined: Thu Sep 20, 2007 11:38 pm

Re: Connect 2 laptops running Mint via ethernet

Post by m00tpoint »

Assuming your NIC's can connect through a direct cable, as most can these days, it'll work fine -- as long as you configure a manual/static IP address on the interfaces. There won't be a router there to hand out IP addresses via DHCP. If the NIC's are unhappy with the cabling, you won't get any lights.
icecake
Level 1
Level 1
Posts: 37
Joined: Tue Oct 27, 2020 6:29 am

Re: Connect 2 laptops running Mint via ethernet

Post by icecake »

Thanks a lot for your help, cable arrived, got it working.
Locked

Return to “Networking”