LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Easy FTP Server (https://www.linuxquestions.org/questions/linux-software-2/easy-ftp-server-4175714227/)

teckk 01-12-2023 02:16 PM

Quote:

Can I also share an entire folder? how?
Everything in the directory that python -m http.server is run in, will be shared.
Open a web browser to http://127.0.0.1:8000 on the same machine, and you will see the contents of the directory.

Quote:

why if i type "https" instead of "http" it doesn't work?
It is a http server, not a https server.

Almoc 01-12-2023 03:34 PM

Quote:

Originally Posted by teckk (Post 6403994)
Everything in the directory that python -m http.server is run in, will be shared.
Open a web browser to http://127.0.0.1:8000 on the same machine, and you will see the contents of the directory.


It is a http server, not a https server.

Thanks!
however it is amazing that it can work even without root permissions. How is it possible?

rkelsen 01-12-2023 04:05 PM

Quote:

Originally Posted by Almoc (Post 6404008)
Thanks!
however it is amazing that it can work even without root permissions. How is it possible?

Port 8000 is not a privileged port. See here for more information: https://www.w3.org/Daemon/User/Insta...egedPorts.html

computersavvy 01-12-2023 05:33 PM

wget can do recursive retrieval very easily with most protocols actually. It simply has to have a server to connect to. Http is one method though it works with most protocols (http, https, ftp, sftp, and many others). 'man wget' for more info.

If you have the sshd daemon running rsync is also a reliable tool for quick file transfers to & from a remote host.

teckk 01-13-2023 09:48 AM

If you start a web server on 172.16.0.2, port 8100, and share a directory of files,

On a second machine on the LAN
Code:

wget -P "/destination/dir" -r -nd http://172.16.0.2:8100
Will get everything in the directory that you shared on 172.16.0.2:8100


All times are GMT -5. The time now is 06:51 PM.