1

I want to make a file server on Ubuntu that I can access from any Windows computer. I don't want a LAN server, I want a world wide server. I already fooled around with Samba and Apache2. (note: I am sort of a linux noob) Please help.

3 Answers 3

2

Use SCP.

For this, all you need to setup is sshd - the SSH server.

  1. Install the openssh-server package.
  2. [Optional, but recommended]: Change the SSH port:
    1. Copy /etc/ssh/sshd_config to /etc/ssh/sshd_config_backup
    2. Edit /etc/ssh/sshd_config and change the number in the line Port 22 to some other one. This is because most SSH attacks target servers on Port 22. Change it to a higher number.
  3. [Optional; use to access from machines outside your LAN] Setup static IP, port forwarding (found in your router settings) and dynamic DNS.

  4. Using the WinSCP client for Windows, you can now connect to your server and access files from anywhere. You also get Terminal access to your server (use PuTTY).

P.S. Anyone connecting will need to know your username and its password.

3
  • If I do that can I mount the server as a drive on my Windows computer?
    – LukeW
    Apr 3, 2016 at 13:10
  • Look at this SuperUser answer.
    – user423626
    Apr 3, 2016 at 13:27
  • Linux treats ports below 1024 as privileged ports, which can involve root privileges. if you really have to change your port number from 22 to a higher port number, it makes sense security-wise to also keep that new port number below 1024
    – noobninja
    May 7, 2016 at 20:33
0

You can setup an simple http server like this,

python -m SimpleHTTPServer

Not need apache.

4
  • OP wants a file server - not HTTP.
    – user423626
    Apr 3, 2016 at 6:45
  • I don't think this answers the question.
    – user423626
    Apr 3, 2016 at 9:06
  • when you exec this, if not index.html in current directory, the web show files list. of course download only.
    – eexpress
    Apr 4, 2016 at 16:59
  • I think you should add this to the explanation
    – user423626
    Apr 4, 2016 at 17:02
0

I would suggest proftpd-basic package, You can download it from the repository. It is easy to configure, You can blacklist adresses, create ftp users, grant privileges to ftp access and to certain directories and still keep sshd closed.

Useful links and knowledge:

https://packages.debian.org/stretch/proftpd-basic

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .