Filezilla Server Linux Ubuntu

Posted onby admin

I can also connect from Filezilla using ftps://ip. I am trying to connect from Ubuntu Linux using the command “$ sftp -P port sftp://email protected“. Getting “Connection closed” all the time. Can you please send me the Linux command to access the SFTP folder. This example is using the popular FileZilla which has both a Windows and Linux client to use to connect to a FTP server. With this setup all data and user authentication is forced to be encrypted. Proceed to this URL to download the FileZilla program (the example install on Windows). As a web application developer, it’s essential to upload files in server. When I was windows user, I used FileZilla FTP software. I’m Ubuntu user for long time and I found there is a version of Filezilla for Ubuntu. Here I give the command how to install FileZilla: Just run your terminal and write: sudo aptitude install filezilla.

Ubuntu is a collection of thousands of computer programs and documents created by a range of individuals, teams and companies.

Each of these programs may come under a different licence. This licence policy describes the process that we follow in determining which software will be included by default in the Ubuntu operating system.

Copyright licensing and trademarks are two different areas of law, and we consider them separately in Ubuntu. The following policy applies only to copyright licences. We evaluate trademarks on a case-by-case basis.

Categories of software in Ubuntu

Filezilla Server Linux Ubuntu

The thousands of software packages available for Ubuntu are organised into four key groups or components: main, restricted, universe and multiverse. Software is published in one of these components based on whether or not it meets our free software philosophy, and the level of support we can provide for it. In addition, software may be published for Ubuntu as a universal Linux snap package, in which case licenses are determined by the snap publisher and documented in the snap store.

This policy only addresses the software that you will find in main and restricted, which contain software that is fully supported by the Ubuntu team and must comply with this policy.

Ubuntu 'main' component licence policy

All application software included in the Ubuntu main component:

  • Must include source code. The main component has a strict and non-negotiable requirement that application software included in it must come with full source code.
  • Must allow modification and distribution of modified copies under the same licence. Just having the source code does not convey the same freedom as having the right to change it. Without the ability to modify software, the Ubuntu community cannot support software, fix bugs, translate it, or improve it.

Ubuntu 'main' and 'restricted' component licence policy

All application software in both main and restricted must meet the following requirements:
  • Must allow redistribution. Your right to sell or give away the software alone, or as part of an aggregate software distribution, is important because:
    • You, the user, must be able to pass on any software you have received from Ubuntu in either source code or compiled form.
    • While Ubuntu will not charge licence fees for this distribution, you might want to charge to print Ubuntu CDs, or create your own customised versions of Ubuntu which you sell, and should have the freedom to do so.
  • Must not require royalty payments or any other fee for redistribution or modification.It's important that you can exercise your rights to this software without having to pay for the privilege, and that you can pass these rights on to other people on exactly the same basis.
  • Must allow these rights to be passed on along with the software. You should be able to have exactly the same rights to the software as we do.
  • Must not discriminate against persons, groups or against fields of endeavour. The licence of software included in Ubuntu can not discriminate against anyone or any group of users and cannot restrict users from using the software for a particular field of endeavour - a business for example. So we will not distribute software that is licensed 'freely for non-commercial use'.
  • Must not be distributed under a licence specific to Ubuntu. The rights attached to the software must not depend on the program being part of Ubuntu system. So we will not distribute software for which Ubuntu has a 'special' exemption or right, and we will not put our own software into Ubuntu and then refuse you the right to pass it on.
  • Must not contaminate other software licences.The licence must not place restrictions on other software that is distributed along with it. For example, the licence must not insist that all other programmes distributed on the same medium be free software.
  • May require source modifications to be distributed as patches. In some cases, software authors are happy for us to distribute their software and modifications to their software, as long as the two are distributed separately, so that people always have a copy of their pristine code. We are happy to respect this preference. However, the licence must explicitly permit distribution of software built from modified source code.

Documentation, firmware and drivers

Ubuntu contains licensed and copyrighted works that are not application software. For example, the default Ubuntu installation includes documentation, images, sounds, video clips and firmware. The Ubuntu community will make decisions on the inclusion of these works on a case-by-case basis, ensuring that these works do not restrict our ability to make Ubuntu available free of charge, and that you can continue to redistribute Ubuntu.

Software installed by default

When you install Ubuntu, you will typically install a complete desktop environment. It is also possible to install a minimal set of software (just enough to boot your machine) and then manually select the precise software applications to install. Such a 'custom' install is usually favoured by server administrators, who prefer to keep only the software they absolutely need on the server.

All of the application software installed by default is free software. In addition, we install some hardware drivers that are available only in binary format, but such packages are clearly marked in the restricted component.

In this tutorial we will learn how to use vsftpd on Linux to make Ubuntu machine run as ftp server and transfer files over wifi on local network.

On many occasion you need to copy and backup files locally from one computer to other. Using physical disk like flash drive or external hard drive is not always feasible due to many constraints such large file size, external drive availability.


We can take advantage of machines being on same network to achieve file transfer.

To follow this guide you should have access to following

  • Ubuntu Machine
  • Windows Machine
  • Both machines connected over same network using ethernet or wifi

How to install VFTP on Ubuntu

Open Terminal to get and install vsftp demon from official ubuntu repository.

sudo apt-get install vsftpd

Above command will install vsftp demon which means it will always be running in background upon machine startup using init.

Use following commands to check vsftp service

sudo service vsftpd status

If service is running then above command will output status of service with all spawned vsftp process ids.

Alternatively you can also check vsftp process with grep

ps -ef grep vsftp

How to configure VSFTP for Uploads

This step is optional but if you want to allow uploads from remote machine to your ubuntu server then follow below configuration.

After installation vsftp will create configuration file at path /etc/vsftpd.conf. This file should be owned by root and should have default vsftp configuration. By default VSFTP will not allow ftp uploads; to enable it uncomment line write_enable=YES

Note that /etc/vsftpd.conf would be owned by root, to make any changes in configuration do. sudo vim /etc/vsftpd.conf or sudo gedit /etc/vsftpd.conf

Restart vsftpd demon once configuration is completed.

sudo service vsftpd restart

Check status after restart.

sudo service vsftpd status

How to configure Ubuntu firewall for FTP

By default ubuntu shall be running firewall known as uncomplicated firewall (ufw). Default firewall rules will not allow any outside connection.

To open ftp port on this firewall use following commands.

Check firewall status using

sudo ufw status

Firewall should be active and running. If it's not active then enable the same using following command to make your machine secure.

Filezilla server linux ubuntu free

You can keep it disable if you have such requirement, however it's recommended to keep it on. sudo ufw enable

To open ftp port 21 use following command

sudo ufw allow ftp or sudo ufw allow 21

This will add firewall rule to accept ftp connections from other machine on network. After adding ftp rule you should have following entries in your firewall. sudo ufw status

Configure Windows Firewall

Firewall should permit you to initiate ftp session from windows machine. Search for Windows Firewall in start menu to open firewall configuration window.


Since we are going to use one time ftp we will disable firewall and reenable it once ftp is done. Depending upon which network you are connected to Home or Public you can disable firewall like below.

Note that disabling complete firewall is not recommended. If you are going to use ftp server regularly from windows machine then please create firewall rules under Windows Firewall with Advanced Security on Port 21

Initiate FTP session using Windows command line

Once we are done with required configurations we can initiate first ftp connection from windows command line. First get IP address of machine hosting FTP server using command ifconfig on ubuntu machine. Use eth0 inet address if you are connected with ethernet cable. For wireless connection use inet address of wlan0 interface. My ubuntu machine have following local IP


To initiate connection open command prompt on windows and use following command. ftp

It will ask for username and password. Username will be same name as the ubuntu user (techmonger in my case) and password will the ubuntu's system password of user.

To get file from ubuntu ftp server, navigate to directory and use get command like below.

To upload file from windows machine to ftp server, put command like below.

To terminate ftp session use bye.

Initiate FTP connection usign ftp client on windows

Filezilla Server Linux

By now you would agree that doing ftp from windows command prompt is bit tedious. We can use ftp client such as winscp or filezilla to get GUI for ftp operations.

Use hostname as IP address of ftp server ( in my case) and same credentials as those of ubuntu user.

Like below you can initiate connection from filezilla. You can use drag and drop to download and upload files from windows machine.

Filezilla Ubuntu Download

FTP Security Aspects - Firewall and Services

All ftp connections will be initiated in plain text. You should only use above method if you are in local network and have complete control over network. For encrypted connections use sftp or ftps.

  • Remove firewall rule from ubuntu once ftp requirement is over.

  • sudo ufw deny ftp or sudo ufw deny 21
  • Enable Winows firewall once ftp requirement is over.

  • Stop vsftp demon if ftp is no longer needed to save system resources. It will also make your system less vulnerable.

    sudo service vsftpd stop

Conclusion : You can make your ubuntu machine to run as ftp server and can transfer files locally. You do not need SMB (server message block) for file transfer between linux machine and windows machine over network.