I would like to ask a question as I have a problem.

I would like to connect two computers. I would like that computer 2 would access computer 1 hard drive without outside internet connection. How do I do that? Do you have any idea? Because I don't even know if that is even possible.

For all your ideas and suggestions I thank you in advance.

One alternative could be to set up an SSH server and restrict the access to only your local network. See here for examples: How can I setup SSH so that it is restricted to my local network?. I'm not on linux right now, so I can't double check the name of the package, but you'll probably want openssh-server, so try to do sudo apt-get install openssh-server. There is loads of guides on the Internet, if you run into problems.

You could then connect to the other computer rather seamlessly with the help of the built in file explorer nautilus. Just do Files -> Connect and then e.g.


I need to assume a bit - as your initial post is missing some informations.


  • both computers are in the same network
  • both computers are connected to this local network (be it wired or using wifi) or directly to each other
  • computer1 is running linux

To break it down

If both computers are in the same local network, it is possible in general. They both need access to either the same local router or directly to each other.

In case of direct connection: Connect the computers using a crossover cable (may not be necessary most modern ethernet cards should auto negotiate the connection)

Then configure the network card on both sides accordingly (i would go for fix ip addresses)

To share the files from computer1 to computer2, you would need to setup some kind of network-share on computer1 (There are several options and protocols here - i.e. ssh ,ftp, samba etc). People often use samba in such cases.

You should be able to find tons of tutorials on how to setup samba, one possible is here

Even shorter

Yes it is possible.

  • I my case the computer 1 and computer 2 must be connected only with eachother. Nor computer 1 and nor computer 2 can NOT have connection with outside world wide web (internet)... Both computer running Ubuntu. – Agent47 Mar 21 '16 at 13:33
  • @Agent47 but are both computers physically near each other? – TheWanderer Mar 21 '16 at 13:53
  • @Zacharee Yes. I was thinking about the connection via USB cable. Is this possible? – Agent47 Mar 21 '16 at 13:59
  • USB? No, not by itself. You need to use Ethernet or WiFi. – TheWanderer Mar 21 '16 at 13:59
  • This is a problem. Computers must be isolated from external networks, because I will store confidental data. – Agent47 Mar 21 '16 at 14:20

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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