0

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.

dufte
  • 12,772
  • 5
  • 38
  • 43
Agent47
  • 11
  • 2
  • 1
    Possible duplicate of [How do I share files on my home network?](http://askubuntu.com/questions/1132/how-do-i-share-files-on-my-home-network) – David Foerster Mar 22 '16 at 12:58

2 Answers2

1

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

Assuming:

  • 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.

dufte
  • 12,772
  • 5
  • 38
  • 43
1

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.

sftp://user@address/folder/
Promille
  • 508
  • 3
  • 12