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
Use SCP.
For this, all you need to setup is sshd
- the SSH server.
- Install the
openssh-server
package. - [Optional, but recommended]: Change the SSH port:
- Copy
/etc/ssh/sshd_config
to/etc/ssh/sshd_config_backup
- Edit
/etc/ssh/sshd_config
and change the number in the linePort 22
to some other one. This is because most SSH attacks target servers on Port22
. Change it to a higher number.
- Copy
[Optional; use to access from machines outside your LAN] Setup static IP, port forwarding (found in your router settings) and dynamic DNS.
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.
-
-
-
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 May 7, 2016 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.– user423626Apr 3, 2016 at 6:45
-
I don't think this answers the question.– user423626Apr 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.– eexpressApr 4, 2016 at 16:59
-
I think you should add this to the explanation– user423626Apr 4, 2016 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: