Forum › Forums › New users › New Users and General Questions › FTP for new antiX user › Reply To: FTP for new antiX user
vsftpd (Very Secure FTP Daemon) is a lightweight FTP server.
to install vsftpd:
<span class=”d4pbbc-font-color” style=”color: green”>sudo apt-get update
sudo apt-get install vsftpd</span>
The installer immediately starts the vsftpd server, listening on TCP port 21.
As a post-installation step, I recommend manually calling
<span class=”d4pbbc-font-color” style=”color: green”>sudo service vsftpd stop</span>
and don’t restart the vsftpd service until you have tweaked its configuration options.to configure vsftpd:
(beforehand, make a backup copy of the pristine conf)
<span class=”d4pbbc-font-color” style=”color: green”>sudo cp /etc/vsftpd.conf /etc/vsftpd.conf_ORIG</span>
Use leafpad, or other text editor, to edit the configuration file:
<span class=”d4pbbc-font-color” style=”color: green”>gksu leafpad /etc/vsftpd.conf</span>To learn about ALL available configuration options, you can <span class=”d4pbbc-font-color” style=”color: green”>man vsftpd.conf</span>
In the meantime, the following changes to the default, as-shipped, configuration parameters will get you up-and-running:<span class=”d4pbbc-font-color” style=”color: blue”>listen=YES
listen_ipv6=NO
local_enable=YES</span> (refers to users in /etc/passwd , i.e. user accounts on the same machine the vsftpd server is running on)
<span class=”d4pbbc-font-color” style=”color: blue”>write_enable=YES</span> (this line is outcommented by default)
<span class=”d4pbbc-font-color” style=”color: blue”>idle_session_timeout=9999</span> (default is 600)
<span class=”d4pbbc-font-color” style=”color: blue”>#ascii_upload_enable=YES</span> (your call, uncomment if desired/needed)
<span class=”d4pbbc-font-color” style=”color: blue”>#ascii_download_enable=YES</span> (your call, uncomment if desired/needed)
<span class=”d4pbbc-font-color” style=”color: blue”>chroot_local_user=NO</span> (your call, you decide)
<span class=”d4pbbc-font-color” style=”color: blue”>#utf8_filesystem=YES</span> (your call, uncomment if desired/needed)After editing /etc/vsftpd.conf, save the file and exit text editor, then start the vsftpd service (aka daemon):
<span class=”d4pbbc-font-color” style=”color: green”>sudo service vsftpd start</span>
and you can immediately log into your vsftp server=================
followup considerations:
If you find that you’re unable to connect, check whether firewall service is running: <span class=”d4pbbc-font-color” style=”color: green”>sudo ufw status</span>
Until you configure suitable firewall rules, you may need to “sudo service ufw stop”
in order to connect to the vsftpd server.(optional, but recommended) “apt-get install install fail2ban”, read the manpage, then configure and enable it.
After stopping the vsftpd service, if you run the “htop” command and notice any still-running vsftpd processes
you can “sudo killall vsftpd” to get rid of them. (I don’t know why the lingering processes sometimes occur, but they do.)Can use the <span class=”d4pbbc-font-color” style=”color: green”>vsftpwho</span> to check whoall is currently connected to the vsftpd server.
If you do, undertand that it’s normal to find one connection listed which is attributed to “root”.
(misleading, and is a potential cause of worry.)If you search/read any additional online vsftpd tutorials, ignore any references to “systemctl” (systemd service manager)
I know this is an old thread, but I just want to share how I ended up with a simpler alternative.
It turns out, we do not have to install and setup an FTP server, which is a nontrivial task detailed by @skidoo’s answer above. Nowadays some ftp clients – such as the gFTP shipped in antiX full version – allow you to connect to an “ftp server” via SSH protocol. So, if your antiX server happens to already have sshd up and running (which should be reasonably easy to setup), you can have your ftp client connects to your antiX server via SSH. The transmission speed is still fast.