Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I have a fresh install of unbuntu server and am trying to setup ftp to upload files from another computer. How do I set this up? Everything I have found has been to setup for FTP server, not what I am looking for.
I have a fresh install of unbuntu server and am trying to setup ftp to upload files from another computer. How do I set this up? Everything I have found has been to setup for FTP server, not what I am looking for.
I think you want to download files from another computer. Or perhaps upload files to another computer. To upload from another computer to your local computer, you need an ftp server.
I dont always work from home, so having access outside the lan is what I need.
Then you'll want to avoid FTP unless you want your server owned in short order. Since you are using FileZilla, the best option for WAN access would be SFTP. You find that in Ubuntu in the package "openssh-server" Be sure to use a strong password for all you accounts. Once you have it running, which should be easy to do, try setting up key-based authentication. Once key-based authentication works, turn off password authentication, at least for WAN logins.
With SFTP you don't even need FileZilla. Nautilus and the other file managers support SFTP out of the box.
The ubuntu link just went to ftp clients. I need to get my server setup.
You're original message says you don't want instructions for an ftp server. Now you say you don't want instructions for setting up an ftp client. Unfortunately, ftp is either client or server software, there is nothing else.
For server setup, try vsftpd, the very secure (and very fast) ftp daemon https://help.ubuntu.com/community/vsftpd. Or don't use ftp at all, but ssh as Turbocapitalist recommends.
Anonymous FTP Configuration
By default vsftpd is not configured to allow anonymous download. If you wish to enable anonymous download edit /etc/vsftpd.conf by changing:
anonymous_enable=Yes
During installation a ftp user is created with a home directory of /srv/ftp. This is the default FTP directory.
If you wish to change this location, to /srv/files/ftp for example, simply create a directory in another location and change the ftp user's home directory:
sudo mkdir /srv/files/ftp
sudo usermod -d /srv/files/ftp ftp
After making the change restart vsftpd:
sudo restart vsftpd
Finally, copy any files and directories you would like to make available through anonymous FTP to /srv/files/ftp, or /srv/ftp if you wish to use the default.
User Authenticated FTP Configuration
By default vsftpd is configured to authenticate system users and allow them to download files. If you want users to be able to upload files, edit /etc/vsftpd.conf:
write_enable=YES
Now restart vsftpd:
sudo restart vsftpd
Now when system users login to FTP they will start in their home directories where they can download, upload, create directories, etc.
Similarly, by default, anonymous users are not allowed to upload files to FTP server. To change this setting, you should uncomment the following line, and restart vsftpd:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.