Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I wondered if i could share folders between two ubuntu machines, even if one of them doesn't have Internet connection.

In fact, i searched all day long for a way to do that, but all i found is that i should install SAMBA or openssh, but i actually can't cause as i said, i don't have Internet on one of the two PCs.

First i tried to find a way to share the Internet connection, but i was told that it wasn't possible while i didn't have two network cards in the PC that was connected to the Internet.

I would be grateful if someone could give me an answer.

share|improve this question
up vote 4 down vote accepted

I'd suggest installing openssh-server on the machine with the internet connection, then using the command scp remote-user@remote-host:/path/to/file ~/place/to/store to copy a file from remote to local on the internet-less machine, as ssh client is pre-installed by default (if I remember correctly).

Alternatively, with openssh-server installed, on the desktop of the internet-less machine go to file->connect to server and change the type to ssh. Then enter a username, password & host to connect to the remote machine and mount the filesystem locally.

There's also this relevant xkcd.

share|improve this answer
Thank you very much for your answers. It works very well. – Sam Jun 20 '12 at 8:18

You can download (on the PC that has internet) the deb packages necessary to install Samba, then transfer them, using a usb pen, or something similar, to the PC that has no internet.

(Be carefull, you need to transfer the dependence packages,if any, to the internet-less PC, too)

Doing a little research on the dependencies,what I get from rpm -qpR samba-3.6.5-86.fc17.1.x86_64.rpm is:

config(samba) = 2:3.6.5-86.fc17.1  
logrotate >= 0:3.4
pam >= 0:0.64
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
samba-common = 2:3.6.5-86.fc17.1
rpmlib(PayloadIsXz) <= 5.2-1

Now you just have to grab one by one and install the debs on the internet-less PC. Good luck! :)

share|improve this answer
yeah, I've tried, but it is really not simple. ( because of dependency problems ) – Sam Jun 19 '12 at 19:44
I'll need more information to help. Your dependence problem is: You cannot install SAMBA although you put the dependencies on the same folder as the Samba deb? If this is the case, you have to install the dependencies debs first; to make sure everything goes fine. Download them too to a usb pen. – David M. Sousa Jun 19 '12 at 21:44
Thank you, if jackweirdy's method didn't work, i would've been obliged to try this one. – Sam Jun 20 '12 at 8:21

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.