How to configure ftp server that other computer can download files from it using curl?
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
How to configure ftp server that other computer can download files from it using curl?
Hi all, I want to setup a ftp server that other computer can download files from it using curl command, but without password just like the linuxfoundation ftp server. My ftp server runing on Ubuntu 14.04
First, I installed the vsftpd:
Code:
sudo apt-get install vsftpd
.
Second, I configured the file /etc/vsftpd.conf as the following:
Why FTP? If this is for download only use HTTP, for instance webfs is very light HTTP server, it can be configured with password, but allows downloads without password by default. You can keep your FTP server running in parallel in case you want to upload something.
It report successfully.
How can I configure the ftp server without password?
I can curl a file from my web server...
I don't know the answer to your query, but if this "other computer" is on your local network,
ftp may or may not be the best tool for the job.
I can curl a file from my web server...
I don't know the answer to your query, but if this "other computer" is on your local network,
ftp may or may not be the best tool for the job.
Why ftp? is a valid Q.
What are you really trying to do?
I want to run some tests on a computer, and download some test files on other computer, so I want to setup a ftp server that can support the download.
Why FTP? If this is for download only use HTTP, for instance webfs is very light HTTP server, it can be configured with password, but allows downloads without password by default. You can keep your FTP server running in parallel in case you want to upload something.
Why FTP? If this is for download only use HTTP, for instance webfs is very light HTTP server, it can be configured with password, but allows downloads without password by default. You can keep your FTP server running in parallel in case you want to upload something.
I have setup the webfs server, but when I download from the server, it just some HTML file. For example, I have put a xxx.rpm under the directory /var/www,
Code:
curl http://ip(webfs server)//xxx.rpm -o xxx.rpm
The result xxx.rpm is a HTML document, ASCII text.
OK, I try the apache2, just modify the /etc/apache2/sites-enabled/000-default.conf. Set the DocumentRoot to /var/www and put the files under the /var/www.
Just as an aside, one of the OLD ftp server packages (or ftp services written in perl or python) might serve better. VSFTP is the Very Secure FTP package, an attempt to lock down a very unsecure protocol. Trying to be Very Secure and allow unlimited download without passwords are contradictory aims.
The modern tools for this are OpenSSH services (sftp) for the server, and something like scp, pscp, or lftp for the client. If you must (and I can see possible good reasons for this) use curl, then a ftp server that does not allow uploads, but allows almost wide-open downloads from a limited folder tree, might make sense.
CURL supports tftp protocol (as well as MANY others including sftp), and is pretty easy to set up (and terribly non-secure). One might leverage tftp (which is available in *all distributions) to serve for this purpose.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.