Click here to Skip to main content
15,887,854 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all!

I'd like to know if any of you is using a remote LINUX data server and how do you share the info from that server in one network with ADSL to another network withg ADSL.

I've read about NFS and it seems a good option, but I'm completely lost about how to connect the two computers (local and remote) being them in two different ADSL with, moreover, dynamic IP's... :~

I need something cheap, fast, secure and easy...

Any pointers?

Thank you in advance... :thumbsup:
Posted

1 solution

Hi Joan,

There are many different ways of sharing files (I assume you are looking for some kind of file sharing as you are mentioning NFS) using Linux. One of the simplest ways if you want good security is to use SSH in some manner. If you choose ssh then this might be helpful:

- Dynamic IP: I would use a dynamic DNS solution like dyndns.org. I guess that you have a firewall/router of some kind. If so then it might already have DynDNS support built in, if not you can get clients for Linux as well as other OS:es that keeps your DNS record updated.

- Basic ssh security: I would recommend you to NOT use passwords (if so they should be long and complex), but instead generate a private/public keypair. Many guides are available, example: http://e-articles.info/e/a/title/How-to-Generate-a-Key-Pair-Using-OpenSSH/[^].

- Don't forget to open ports in firewall to allow for SSH traffic! SSH normally uses port 22, but this is configurable.

- Once ssh is in place, then you may use something like rsync to synchronize files (see "Using RSync Itself" in http://everythinglinux.org/rsync/[^]).

- Or use scp might be handy.

I would avoid NFS as security is hard to get properly (bare NFS does not encrypt traffic), and it is also a problem given dynamic dns addresses. NFS is probably better used in LAN situations.

Other options are to use:
- rsync daemon.
- git daemon (git is useful for many things :laugh:)
- HTTPS using Apache
- WebDAV
- FTP with some kind of SSL solution
- sftp

/AZ
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900