Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
askubuntu.com/questions/100790/… –  One Zero Jun 26 '12 at 12:26

4 Answers 4

up vote 8 down vote accepted

                           Share files between 2 ubuntu computers

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

sudo apt-get install openssh-server openssh-client

Then you need to figure out the ip of each the computer you want to connect to. Most of the time it’s something like or something in that line.

On the computer you want to access the files from, go to “File -> Connect to Server”.

enter image description here

enter image description here

enter image description here

Service type should be “SSH”"

Server should be the “ip” adress of the pc where the info is on.

Port, enter “22″

Pick the folder you wish to share (could take some time to connect depending on the size of the folder).

The user name of the pc you are connected to

The bookmark will be the name of the folder in nautilus

After that you’ll get a windows where you have to enter a password. That would be the password of the pc you are trying to connect to.

You should have read/write permissions.

enter image description here

share|improve this answer

               A Quick Way to Share Folders in Ubuntu


Share a folder between 2 Ubuntu using samba PC's

enter image description here

enter image description here

enter image description here

enter image description here

sudo smbpasswd -a USERNAME
share|improve this answer

go to /etc/samba directory and type:

   sudo gedit smb.conf

Then just add this line after workgroup name:

   usershare owner only = false

and exit with saving.

Now restart the services:

   sudo service smbd restart

   sudo service nmbd restart

Now create a samba user:

   sudo smbpasswd -a RAIHAN

and provide password for that user.

That's it!!!

share|improve this answer

If you do not require encryption u can use python. If you have installed python you can try SimpleHTTPServer. For this

cd /folder/to/share

And then,

python -m SimpleHTTPServer

This will allow sharing through port 8000. The other machine can access the files using http://"IP of first machine":8000

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.