Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
49
rated 0 times [  49] [ 0]  / answers: 1 / hits: 123666  / 3 Years ago, sun, july 11, 2021, 6:02:49

I have two laptops running Ubuntu 12.04. Both connect to the same WIFI network to access internet.



How do I connect them to each other so that I can access files on one from another and vice versa?



Also, how do I manage the user permissions, etc. on them?


More From » networking

 Answers
1

Share files between 2 Ubuntu computers



If you have two computers running Ubuntu on the same network, it would be an good idea to use openssh to share files between them.



On the server (the computer with the files you want to access), run:



sudo apt install openssh-server


On the client you should have ssh installed already (if for some reason it's not install, run sudo apt install openssh-client).



Then you need to figure out the IP of the computer you want to connect to. Most of the time it's something like 192.168.1.x. To find out the IP, run ifconfig and look for the "wl..." interface (or "eth..." if you're connected over Ethernet cable).



On the client, open Nautilus (Super+E) and go to “File -> Connect to Server”.



Enter sftp://<the_IP_of_the_server>



Ubuntu 16 Connect to Server dialog



On older version of Ubuntu, you could pick the folder you wish to share. As of Ubuntu 16, if you don't specify a path after the IP, you'll get the home directory. For a specific directory outside of the home dir of the user you're connecting as, you need to type its path.



Note that it could take some time to connect, depending on the size of the folder directory.



You'll be prompted for the user/password of the computer you want to connect to.



The name of the directory will become a bookmark in Nautilus.



You should have read/write permissions.


[#37271] Tuesday, July 13, 2021, 3 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
atelti

Total Points: 194
Total Questions: 129
Total Answers: 110

Location: North Korea
Member since Tue, Jun 16, 2020
4 Years ago
atelti questions
Fri, Aug 26, 22, 02:44, 2 Years ago
Sat, Dec 10, 22, 21:37, 1 Year ago
Sat, Apr 9, 22, 13:57, 2 Years ago
;