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.


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.

  • If I do that can I mount the server as a drive on my Windows computer? – LukeW Apr 3 '16 at 13:10
  • Look at this SuperUser answer. – UniversallyUniqueID Apr 3 '16 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 '16 at 20:33

You can setup an simple http server like this,

python -m SimpleHTTPServer

Not need apache.

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

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:


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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