Stories
Slash Boxes
Comments

SoylentNews is people

posted by janrinok on Friday January 19 2018, @09:33PM   Printer-friendly
from the questions,-questions,-questions dept.
An Anonymous Coward asks:

I'm putting this under security because i'd like to keep this a private server for family:

that said, I'm wondering if you fine people can help me with the best way to set up a web server in my house to host the files on my external hard drives for family members in other cities/countries while, again, keeping it private and secure over the internet.

I'm looking into ngrok for url handling, but am not sure exactly if this is the best way to go.

Can anyone save me time and possible heartache and failure and provide me (and possibly others) with a walk-through of which software to use. Would love to do something like free, but may have to get a paid unique domain from, say, ngrok, to make it easier for family members to connect up.

Help me, Obi Wan Kenobi... you're my only hope!


Original Submission

 
This discussion has been archived. No new comments can be posted.
Display Options Threshold/Breakthrough Mark All as Read Mark All as Unread
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
  • (Score: 2) by stormreaver on Friday January 19 2018, @10:06PM (2 children)

    by stormreaver (5101) on Friday January 19 2018, @10:06PM (#624950)

    An SSH server on Linux is very easy to setup, and gets you everything you want. On Debian, install openssh-server, create an account on your server for each of your family members, create a symbolic link in each of their home directories to the common read/write location, give each family member their login credentials, and then share away.

    The hardest part of it all will be your IP address.

    Starting Score:    1  point
    Karma-Bonus Modifier   +1  

    Total Score:   2  
  • (Score: 2, Interesting) by sonamchauhan on Saturday January 20 2018, @04:35AM

    by sonamchauhan (6546) Subscriber Badge on Saturday January 20 2018, @04:35AM (#625037)

    No, the hardest part will be training his extended family to use the Unix command prompt.

    If all he wants is for family members to access 'files' (probably photos, videos, Word documents, and the like), a good setup would be something like a low-power RasPi running wordpress [raspberrypi.org], using Facebook and Gmail plugins for user authentication, serving up files from a USB or network-attached hard drive that's mounted read-only (or even better, from an SD card, with physical switch write-protection set).

  • (Score: 0) by Anonymous Coward on Saturday January 20 2018, @06:04AM

    by Anonymous Coward on Saturday January 20 2018, @06:04AM (#625057)

    SSH, but generate a few key pairs and allow key based authentication only in /etc/ssh/sshd_config. Add those public keys to your ~/.ssh/authorized_keys.

    Then help or tell your friends and family how to setup Filezilla (cross platform FTP/SFTP client) with their new private key to access your files. They get one click connection, an easy to understand drag and drop interface between local and remote file lists, and interrupted download resume. It's a pretty easy to use, secure, and easy to setup system.

    Also change your default SSH port number to something else and open that port on your router (don't worry it is a part of the Filezilla config so no-one has to remember it).

    As for keeping track of your IP address: when I used to run a server like described above, I had a script that read my router status page, checked if the external IP had changed, and sent out an email accordingly. I don't remember the details but a search for "send gmail from bash" and someone else had laid it all out for me. Or just tell your users to email you if they lose access and you email them manually when you hear from them or you know your ip changed.