How to use FileZilla - step-by-step instructions. Filezilla Server: setup and connection

Good afternoon, gentlemen! Today we will deal with the FileZilla program: we will talk about setting up this FTP client and talk about in which cases using FileZilla can significantly reduce your time and nerves. So, let's go!

This protocol is used purely for file transfer. Typically, when transferring files via FTP, you do not risk damaging them in any way. The process will either complete successfully or fail and you will be prompted to try again.

In modern realities, FTP is most often used when working with remote virtual servers (the same webmasters or freelancers). You can learn more in the article about what an FTP connection is and what connection options exist.

In this article, as I said at the beginning, we will talk about one of the most popular FTP clients - FileZilla.

FileZilla – Free FTP Client

FileZilla is a free FTP client for transferring files using the same protocol. The program is distributed free of charge and is available for download from the official website. It occupies one of the leading places among all FTP clients.

And this is not just like that: the application is very convenient and multifunctional. FileZilla is a pleasure to use. An intuitive interface, a variety of different tools and functions - these are not all the advantages of Filezilla.

Program installation

You can download Filezilla absolutely free. To do this, just go to the official website, where the desired button will be immediately available in the main menu.

Documentation for beginners is also available here, which will tell you how to work with this application.

After we click on “Download FileZilla”, we will be immediately taken to the download page, where versions for different operating systems will be available.

Select the desired version (most likely Windows x64), and then download the installation file to your computer.

Important! If you use Linux, you don’t have to download the application image from the official website; you can install the program from the repositories.

Immediately after downloading and running the installation package (in exe format for Windows), you will see a standard installer.

There should be no problems installing FileZilla on Windows, just click “I Agree”, then “Next” - “Next” - “Continue”. After installation, the application shortcut will appear on the desktop and in the program list.

Setting up an FTP client

After launching Filezilla, you will see a window like this. This is the standard setup option that you will have immediately after installation. If you wish, you can change the display of specific windows using the icons that appear second row after the main menu (shown by an arrow).

The interface here corresponds to the system language (mine is in Russian), but if you wish, you can change it in the settings (Editing - Settings - Language).

Here, just above, you can change the icon theme, date and time format, and much more. In its standard setup, FileZilla is quite usable: you can easily connect to the host to transfer files. This does not require any special setup, everything is intuitive and simple.

Application Appearance

Let's take a closer look at the FileZilla interface. Although it is extremely simple, it can be a little difficult for beginners. Filezilla itself (its main window) is divided into 6 components. Each of them is important and is responsible for a specific action. This is what it looks like.

Here you can see:

  1. Main menu: access to the settings and functionality of the application.
  2. Block of tool icons: with their help you can control interface elements, as well as reproduce any actions to manage file transfer.
  3. Authorization fields: here you enter information in order to log into the server (the host server itself, username and password, and port, if necessary).
  4. File manager on the remote server (when you connect to the host).
  5. File manager on your PC.
  6. Status of operations (files in job, transfers in error, etc.)

These are the components you will work with. Here (in the screenshot) I did not mark the command log. It is located immediately under the authorization fields - there you can observe all the actions that will be played when working with the program.

Using those same icons, you can disable all unnecessary interface elements, leaving only file managers for transferring files from your computer to the server and back. Their appearance, by the way, can be changed in the settings: Editing – Settings – Interface – Themes.

Site manager function

To avoid entering connection information each time, you can use the site manager. A fairly convenient function for automating connections to servers via FTP. Here you can not only enter all the data for automatic connection in one click, but also group it into folders, creating individual settings for each site or group of sites.

Convenient, isn't it? Pay attention to “Protocol” in the “General” tab. Here you can choose which protocol to connect to a particular site. In addition to standard FTP, you can use SFTP and Storj. Each of them has its own advantages.

You can also configure encryption and even choose the background color for each site (so as not to get confused).

How to use an FTP client

Connecting to server/host

Now it’s time to move on to the main topic of this material - how to use the FileZilla FTP client, and most importantly, how to create an FTP connection to the server.

First, we need to understand how exactly you can find out the site host for FileZilla. Here Beget hosting will be used as an example. We go to the official website of the hoster and register an account there, immediately after that all the necessary data for access via FTP will be sent to us by email.

If we want to create separate accesses for each site (if there are several on one account), then, as can be seen from the information in the screenshot, we just need to go to the appropriate section.

In this case, when connecting to an FTP server, we will only see the files of the site to which we have created separate access. I will have access to all sites on my account, because I log in through default access.

To access we need the following data:

  • host (server),
  • Username (login),
  • password.

I have them all (screenshot above), you will have yours. Enter the data in the appropriate fields in Filezilla and click “Quick Connect”.

If you also disabled unnecessary interface elements (using icons), this is exactly the window you will see after a successful connection. As you can see, the “Remote site” field contains files that are currently located on my remote host. I can download, change and edit them at any time using FileZilla.

When connected to a remote server, we can transfer files back and forth. The easiest way to do this is to drag it while holding the left mouse button.

However, if you so desire, you can use the context menu, which can be accessed by right-clicking the mouse.

If you enable the activity window, you will be able to see when and which files were transferred.

A list of files that could not be transferred will be available in the next tab.

You can transfer files in batches. Simply select the required number of files and/or folders with the mouse, and then drag them into the adjacent window.

To edit a file, for example, PHP code or any other, you do not have to manually download it to your machine. Simply right-click on the desired file and then select “View/Edit”.

It will immediately open in your usual program automatically. Immediately after editing and saving the file, you will be prompted to update it on the remote host.

In this case, the document being edited will not be saved on the computer. It has a temporary status and is deleted after a restart.

You can edit most files this way.

Search files

Sometimes there are countless files on a remote host. In this case, the built-in search tool with an advanced type of settings can help us. As you can see in the screenshot, there are truly a lot of possibilities here.

Files can be searched by keys in the name and by content. Through this tool, you can also search on your local PC if the standard tools of your operating system do not cope with the tasks.

Other

With the help of file managers, you can reproduce any actions with files and folders: renaming, creating directories and much more.

Conclusion

FileZilla is an excellent application that is perfectly suited for its purposes. With it, you can download and upload various files from remote servers. The versatility of Filezilla will allow you to forget about the inconvenience. Many things in this FTP client are simply automated, so you should definitely give it a try.

By the way, if you want to make money on sites, then you are welcome to ours.

    Abbreviation FTP comes from English F ile T transfer P rotocol (file transfer protocol) is an application layer protocol for exchanging files over the TCP/IP transport protocol between two computers, an FTP client and an FTP server. This is one of the oldest, and yet still actively used protocol.

The FTP protocol is designed to solve the following problems:

  • access files and directories on remote hosts
  • ensuring client independence from the file system type of the remote computer
  • reliable data transmission
  • use of remote system resources.
  • The FTP protocol supports two connection channels at once - one for transfer teams and the results of their implementation, the other is for sharing data. With standard settings, the FTP server uses TCP port 21 to organize a channel for sending and receiving commands and TCP port 20 to organize a channel for receiving/transmitting data.

    The FTP server waits for connections from FTP clients on TCP port 21 and, after establishing a connection, accepts and processes FTP commands, which are regular text strings. The commands define connection parameters, the type of data transferred, and actions in relation to files and directories. After agreeing on the transmission parameters, one of the exchange participants enters passive mode, waiting for incoming connections for the data exchange channel, and the second establishes a connection to this port and begins transmission. Once the transfer is complete, the data connection is closed, but the control connection remains open, allowing you to continue the FTP session and create a new data transfer session.

    The FTP protocol can be used not only to transfer data between a client and a server, but also between two servers. In this case, the FTP client establishes a control connection with both FTP servers, switches one of them to passive mode, and the second to active, creating a data transfer channel between them.

    An FTP client is a program that connects to an FTP server and performs the necessary operations to view the contents of the server's directories and receive, transfer, and delete files or folders. Such a program can be a regular browser, operating system components, or specially developed software products, such as a popular download manager. Download Master or multifunctional free FileZilla FTP Client.

    The FTP protocol was developed back in the days when the client and server interacted directly, without any intermediate transformations of TCP packets, and in standard mode it assumes the ability to create a TCP connection not only at the initiative of the client, but also at the initiative of the server from TCP port 20 on TCP - client port, the number of which is transmitted during the creation of a data session.

    The realities of today are such that such a TCP connection from server to client is in the vast majority of cases impossible, or very difficult to implement due to the fact that in most cases, network address translation technology is used to connect to the Internet NAT(Network Address Translation) when the client does not have a network interface available to create a direct TCP connection from the Internet. A typical diagram of a standard Internet connection looks like this:

    Internet connection is made through a special device - Router(router with NAT function) that has at least two network ports - one connected to the provider’s network, having a network interface with a routed IP address (the so-called “white IP”), for example 212.248.22.144, and a port with a network interface for connecting local network devices with a private, non-routable IP address, for example 192.168.1.1 (“gray IP”). When creating connections from local network network devices to external network nodes, IP packets are sent to the router, which performs address and port translation so that the sender's address becomes his white IP address. The translation results are saved and when a response packet is received, a reverse address translation is performed. Thus, the router ensures the forwarding of TCP/IP packets from any local network devices to external networks and the return forwarding of received response packets. But in cases where a packet that is not related to TCP response packets is received at the input of a network interface connected to the provider’s network, the following reaction options are possible for the router software:

    The packet is ignored because there is no network service to process it.

    The packet is received and processed by the network service of the router itself, if such a service exists and is waiting for an incoming connection (“listening”) on the port whose number is indicated in the received packet.

    The packet is forwarded to a server on the local network that expects this type of incoming connections in accordance with the port mapping rules specified by the router settings.

    Therefore, at present, the main mode of operation using the FTP protocol has become the so-called “passive mode”, in which TCP connections are made only from the client to the TCP port of the server. The active mode is used in cases where it is possible to connect TCP from the server to client ports, for example, when they are on the same local network. The FTP connection mode is selected using special commands:

    PASV- the client sends a command to perform data exchange in passive mode. The server will return the address and port to which you need to connect to receive or transmit data. Example of a fragment of an FTP session with passive mode set:

    PASSV- command to switch to passive mode transmitted by the FTP client to the FTP server

    227 Entering Passive Mode (212,248,22,144,195,89)- FTP server response, where 227 is the response code, a text message about switching to passive mode and in brackets the IP address and port number that will be used to create a data transmission channel. The address and port number are displayed as decimal numbers separated by a comma. The first 4 numbers are the IP address (212.248.22.144), the remaining 2 numbers specify the port number, which is calculated by the formula - the first number is multiplied by 256 and the second number is added to the result, in this example the port number is 195 * 256 +89 = 50017

    PORT Client IP address port number- the client sends a command to establish a session in active mode. The IP address and port number are specified in the same format as in the previous example, for example PORT 212.248.22.144,195,89 To organize data transfer, the server itself connects to the client on the specified port.

    Installing and configuring FileZilla FTP Server.

    You can download the FileZilla Server installation package for your version of the operating system at

    The server installation is performed in the standard way, with the exception of the item with the selection of server control panel settings:

    This is the main server management tool through which all necessary settings are made. By default, the control panel operates on a loopback interface without password access. If necessary, for example, if remote control of the FTP server is required, these settings can be changed.

    Once the installation is complete, an invitation window will open to connect to the server:

    After entering the IP address, port number and password (if you specified them during the installation process), the FileZilla Server control panel opens:

    At the top of the window there is the main menu and control panel buttons. Below there are two areas - server information messages and statistical information. Overall, FileZilla Servver's FTP control panel is quite simple and easy to use. Main menu items:

    File- operating modes of the FTP server control panel. Contains sub-items

    - Connect to Server- connect to the server
    - Disconnect- disconnect from the server
    - Quit- shutdown of the control panel.

    Server- FTP server management. Contains subparagraphs:

    - Active- start/stop FTP server. If the checkbox is checked, the FTP server is started, if unchecked, it is stopped.
    - Lock- prohibit/allow connections to the server. When the checkbox is checked, new connections to the server are prohibited.

    Edit- editing settings. Sub-items:

    - Settings- basic server settings.
    - Users- FTP server user settings
    - Groups- user group settings.

    As an example, let's configure the server for the following conditions:

  • the server is behind NAT, has a private IP address, but must be accessible from the Internet, supports passive mode and uses non-standard TCP ports. The use of non-standard ports reduces the likelihood of hacker attacks, and in addition, some providers use traffic filtering and block standard ports 20 and 21.
  • users have the ability to download from the server, upload to the server, delete and rename files and folders.
  • If you use a dynamic IP address, you must ensure that the server is accessible by DNS name.
  • the server will operate on a workstation in a Windows 7 / Windows 8 OS environment.
  • In other words, you need to create an FTP server accessible from the Internet for exchanging files between users, of course for free. It is quite clear that in addition to creating the necessary configuration of the FTP server itself, you will need to change some router settings, Windows firewall settings, and solve the problem of a dynamic IP address so that the server is accessible by name, regardless of the change in IP address.

    Solving the problem of dynamic IP address.

        This problem does not require a solution in cases where, when connecting to the Internet, a static IP address is used, or a dynamic one, but in accordance with the provider’s settings, it is almost always the same. Otherwise, you can use a technology called Dynamic DNS (DDNS) . This technology allows you to update the IP address information on the DNS server almost in real time, and access the router (and services behind it) by the registered name, without paying attention to changes in the dynamic IP.

    To implement this technology for free, you will need to register with some dynamic DNS service and install client software to update the DNS record if the corresponding IP address changes. Dynamic DNS support is usually provided by network equipment manufacturers (D-Link, Zyxel, etc.), some hosting and specialized companies, such as the well-known DynDNS. However, after in the second half of 2014, all services that were provided to registered users free of charge for non-commercial use became paid, the most popular solution, perhaps, was the use of dynamic DNS based on the service No-IP.org, which provides free support services for 2 nodes with dynamic IP. To use the service for free, you will need to register and periodically (approximately once a month) visit the site to update information about the dynamic IP nodes used. If you skip updating the node data, the service is suspended, and accordingly, it will become impossible to connect to the node by name. When using the service for a fee, no update is required.

        Almost all modern routers (modems) have built-in support for a dynamic DNS client. Its setup is usually very simple - you fill in the fields with the user name and password, as well as the host name received when registering with the DDNS service. Example for Zyxel P660RU2

        Using the DDNS client built into the router/modem is preferable to the DNS data update utility running in the OS environment, since it allows you to implement additional capabilities, such as managing the router via the Internet when the computer is turned off and remotely turning on the power supply to computers behind NAT using technology Wake On Lan.

    In those cases where it is not possible to use the built-in DDNS client, you will have to make do with application software - a client program for supporting dynamic DNS. Such a program periodically connects to a server that maintains a registered domain name associated with the router through which the Internet connection is made, and calls the IP update procedure when it changes. The server settings are made in such a way that the comparison of the DNS name and the IP address of the Internet connection is completed in a very short time, and the dynamic nature of the address has virtually no effect on the performance of services associated with the DNS name.

    The procedure is as follows:

  • We go to the website No-IP.org. To work with an existing or new account, use the button "Sign In"(top right side of the page).

  • Create, if it has not yet been created, your account - click "Create Account". The registration form changes periodically, but it is mandatory to enter the desired username, password and your E-mail. An email with a link to confirm registration is sent to the e-mail specified during registration. When registering, select free access - click the button Free Sign Up
  • after filling out all the required form fields. After successful registration, log into the site and add an entry for your node - click the button

    "Add Hosts" In fact, you only need to enter the selected host name, in this case - myhost8.ddns.net . There is no need to change any other parameters. Then you need to download and install special software - Dynamic Update Client (DUC), the link to which is located on the main page of the site. After the installation of DUC is completed, it will launch and an authorization window will open, where you need to enter the username or E-mail and password received when registering on the no-ip.org website. Then press the button Edit Hosta

    and check the box next to the previously created host name (myhost8.ddns.net). Now, the selected host name will always correspond to the “white IP address” of your Internet connection. If you are having trouble updating your IP address, check to see if your DUC client's network activity is being blocked by a firewall.

        Using non-standard port numbers for an FTP server is not at all necessary if the provider does not use traffic filtering, or you do not care about scanning ports for vulnerabilities and trying to guess passwords. In this article, the use of an FTP server with non-standard TCP ports is presented as one of the possible options.

    FileZilla Server settings are made through the "Edit" - "Settings" menu

    Window General Settings intended for general FTP server settings.

    In the "Listen on this port" field you can specify the port number for incoming TCP connections. By default, this field is set to 21 , and to use a non-standard number you need to specify the selected value, for example - 12321 . Using a non-standard TCP port has some inconvenience, since it requires specifying its value when creating a session:

    If the server is planned to be used both with access from the Internet and on the local network, it makes sense to leave the standard value 21, and use a non-standard port number for connections from the Internet, setting up redirection of packets arriving on port 12321 of the router to port 21 of the FTP server in local network. With this setup, there is no need to specify a port number for FTP sessions within the local network.

    Other parameters are for tuning performance and session timeouts. They can be left unchanged. The remaining sections of general settings can also be left as default:

    Welcome Message- text that is sent to the client upon connection.

    IP Binding- on which network interface client connections will be expected. By default - on any, but you can specify a specific one, for example - 192.168.1.3.

    IP Filter- setting up filtering rules for client IP addresses. By default, connections are allowed for any IP.

    Chapter Passive mode settings serves to configure passive FTP mode and will require changing almost all default parameters.

    The port numbers that will be used to transmit data in passive mode must be set manually, since the router will need to be configured to redirect it to the network interface that the server is listening to. Therefore, you need to check the box to enable the "Use custom port range" mode and set the range - for example, from 50000 before 50020 . The number of ports the server listens to determines the limit on the number of simultaneous data transfer sessions.

    Subsection IPv4 specific defines the IP address that will be sent by the server in response to the PASV command. In this case, it should not be the server’s own IP 192.168.1.3, but the “white IP” of our Internet connection. Therefore, you need to set the “Use the following IP” mode and instead of the IP address, enter the name received when registering with the dynamic DNS service - In fact, you only need to enter the selected host name, in this case -. As an alternative, you can use the mode for determining the external IP address using the FileZilla project by turning on. "Retrieve external IP Address from:". This option can be selected in cases where it is not possible to use the dynamic DNS tool. If you intend to use an FTP server on your local network, you need to set the mode to "Don"t use external IP for local connections" (do not use an external IP address for connections within the local network)

    The rest of the server settings can be left unchanged or, if necessary, performed later: Security settings- Security Settings. By default, connections that can be used to implement DDoS attacks are prohibited

    Miscellaneous- settings for buffer sizes and other log parameters and some FTP commands.

    Admin Interface settings- server control panel settings. You can specify the network interface, listening port number, IP addresses from which connections to the control panel are allowed, and a password.

    Logging- server event log settings. By default, writing to the file is not performed.

    Speed ​​Limit- data transfer rate limit settings. By default - no restrictions.

    Filetransfer compression- settings for file compression during transfer. The default is no compression.

    SSL/TLS settings enabling encryption mode for transmitted data. The default is no encryption.

    Autoban- enable automatic blocking of users who guess the password to connect. By default, automatic blocking is disabled.

    Setting up port forwarding and firewall

    In order for the FTP server to be accessible from the Internet, it is necessary to configure the router so that incoming connections coming to certain TCP ports on the external interface are redirected to the TCP ports listened to by the FTP server on the internal network. For different router models, the settings may differ in terminology, but their meaning is the same - a TCP packet with a specific port number received on the external (WAN) interface is sent to the local network to the desired IP address and port. Example of settings for the D-Link DIR-320NRU router for port forwarding used for passive FTP mode:

    Packets received on an interface with a "white IP" and having port numbers in the range 50000-50020 will be redirected to the IP address specified in the "Internal IP" field (in our case - 192.168.1.3). Similarly, a redirection is created for port 50021 if you changed the standard port number, or to port 21 of the FTP server if you left it unchanged.

    After applying these settings, the FTP server will be accessible via URL ftp://myhost8.ddns.net:50021 or, for a connection within a local network:

    ftp://192.168.1.3- if you did not change the default port number (21) in the FTP server settings.

    ftp://192.168.1.3:50021- if a non-standard port number is used.

    You can use a computer name instead of an IP address if it can be resolved to an IP address

    ftp://comp1

    ftp://comp1.mydomain.ru

    Diagnosis of problems

    If the connection to the FTP server does not occur, then there may be problems with the firewall blocking the connections necessary for the operation of the created FTP server. If you use the built-in Windows firewall, you must add a rule that allows network activity for the "FileZilla FTP server" service. If you are using a third-party firewall or antivirus with traffic filtering, you must create a corresponding rule using the available settings tools to allow network connections. Options are possible when settings are made to allow any network activity of a specific program, or to allow selected addresses and ports that apply to all programs.

    The best place to start diagnostics is on the FTP server itself. As a diagnostic tool, you can use a standard telnet client(utility telnet.exe) . All firewalls do not block connections on the loopback interface, and to check that the server settings are correct, you can connect to it by entering the command:

    telnet localhost 21- if a standard port number is used.

    telnet localhost 50021- if the standard port number has been changed.

    When this command is executed, a connection to the FTP server is made via the loopback interface and a server invitation (Welcome Message) should be displayed in the telnet window. If this does not happen, the server may be stopped, there is a port conflict, or port 21 (50021) is not listening. For diagnostics you can use the command netstat:

    netstat –nab

    The command line options mean:

    n- use numeric port numbers and IP addresses

    a- display all connections and listening ports

    b- display the names of programs involved in creating connections.

    Example of displayed command results:

    Active connections

    Name     Local address     External address     Status
    TCP         0.0.0.0:21                 0.0.0.0:0                 LISTENING
    TCP         0.0.0.0:135               0.0.0.0:0                 LISTENING
    RpcSs

    In a collumn Local address there is a meaning 0.0.0.0:21 , which indicates that the program named FileZilla Server.exe listening (state LISTENING) TCP port number 21 on all network interfaces. If a specific interface and a different port number were specified in the FTP server settings, then this value will contain IP:port, For example - 192.168.1.3:50021

    To display the results in page mode, you can use the command:

    netstat -nab | more

    Or use search results by port number: netstat -nab | find ":21"

    If the server is unavailable on a non-loopback interface, but is accessible on a loopback interface, you need to understand the firewall settings.

    Setting up users and groups.

    Setting up users and groups is done through the menu "Edit" - "Users" ("Groups"). It is not necessary to create groups, but sometimes it is convenient in cases where there are a large number of users and their rights in relation to the FTP server differ. The settings for both groups and users are almost identical:

    This example shows the result of adding an FTP server user named user1 having full rights to write, read, delete and merge files, as well as to view the contents, delete and create subdirectories in the directory C:\ftp\public

    On the page General user properties are added, deleted, and changed.
    On the page Shared Folders settings are made that determine the list of file system directories that will be used by the FTP server to provide access to them via the FTP protocol. Each user or group of users can be given their own directory with certain rights in relation to its contents.
    On the page Speed ​​limits You can set restrictions on data exchange speed.
    On the page IP Filter You can set filtering rules for the user's IP address, indicating the addresses from which connection to the server is prohibited or allowed.

    List of basic FTP commands

    ABOR - Abort file transfer
    CDUP - Change directory to a higher one.
    CWD - Change current directory.
    DELE - Delete a file (DELE filename).
    HELP - Displays a list of commands accepted by the server.
    LIST - Returns a list of files in a directory. The list is transmitted via the data connection (port 20).
    MDTM - Returns the file modification time.
    MKD - Create a directory.
    NLST - Returns a list of files in a directory in a shorter format than LIST. The list is transmitted via the data connection (port 20).
    NOOP - Empty operation
    PASV - Enter passive mode. The server will return the address and port to which you need to connect to collect the data. The transfer will begin when the RETR, LIST, etc. commands are entered.
    PORT - Enter active mode. For example PORT 12,34,45,56,78,89. Unlike the passive mode, the server itself connects to the client to transfer data.
    PWD - Returns the current server directory.
    QUIT - Disconnect
    REIN - Reinitialize connection
    RETR - Download file. RETR must be preceded by a PASV or PORT command.
    RMD - Delete directory
    RNFR and RNTO - Rename the file. RNFR - what to rename, RNTO - what to rename.
    SIZE - Returns the file size
    STOR - Upload a file to the server. STOR must be preceded by a PASV or PORT command.
    SYST - Returns the system type (UNIX, WIN,)
    TYPE - Set the file transfer type (A - ASCII text, I - binary)
    USER - Username to log into the server

    Example FTP session

    FTP client connects to server with username user1, an empty password and downloads a file named cpu-v. Messages from the FTP server are highlighted in red, messages from the FTP client are highlighted in blue. The exchange of directives and parameters may vary slightly between different versions of the FTP client and FTP server software.

    After connecting, the server transmits information about itself to the client:
    220-FileZilla Server version 0.9.45 beta
    220-written by Tim Kosse ( [email protected])
    220 Please visit http://sourceforge.net/projects/filezilla/
    The client passes the username:
    USER user1
    The server asks for a password:
    331 Password required for user1
    The client passes an empty password:
    PASS
    The server verifies the user account and reports the start of the session:
    230 Logged on
    The client requests the type of operating system on the server:
    SYST
    The server reports that the type Unix, emulated by Filezilla server:
    215 UNIX emulated by FileZilla
    The client requests a list of parameters supported by the server:
    FEAT
    The server responds with a list of supported parameters:
    211-Features:
    MDTM
    REST STREAM
    SIZE
    MLST type*;size*;modify*;
    MLSD
    UTF8
    CLNT
    MFMT
    211 End

    The client requests the current directory of the server:
    P.W.D.
    The server reports that the current directory is the root directory ("/"):
    257 "/" is current directory.
    The client reports that it will transfer binary data:
    TYPE I

    The server confirms the type of data being transferred:
    200 Type set to I
    The client reports that it will use passive FTP mode:
    PASV
    The server reports the transition to passive mode and transmits the IP and port for passive FTP mode.
    227 Entering Passive Mode (212,248,22,114,195,97)
    The client requests to receive a file named cpu-v from the current server directory
    RETR cpu-v
    The server reports the start of data transfer:
    150 Opening data channel for file download from server of "/cpu-v"
    Upon completion, the server reports a successful transfer:
    226 Successfully transferred "/cpu-v"

    In conclusion, I would like to add that the Filezilla project includes not only the development and support of a high-quality free FTP server, but also a popular free FTP client

    An article with a brief description of a free FTP client for Linux, Mac OS and Windows. This FTP client supports many application data transfer protocols - FTP, FTP over SSL/TLS (FTPS), SSH File Transfer Protocol (SFTP), HTTP, SOCKS and FTP-Proxy. In other words, Filezilla FTP Client is a universal software for receiving and transferring files over all modern application protocols between nodes on various platforms.

    Greetings to all readers and guests of the site. Anton Kalmykov is with you.

    First of all, let's figure out what FTP is and why it is needed.

    FTP is a file transfer protocol that allows you to upload various objects to your server, delete them, edit them, and of course, backup your blog. Without these manipulations, it is currently impossible to imagine a single successful blogger.

    When I started working on our project, I initially tried to tinker with the code in the WordPress panel, but it was inconvenient and unsafe. You ask me why? Yes, because when I saved any changes and they did not lead to the desired result, I had to make a backup.

    Now, I have created two directories on my computer. In the first, with the help of Filezil, I copy the original files from the hosting, and in the second, I download the files with which I conduct all my experiments.

    What is Filezilla and where to start?

    So, let's take a closer look at my favorite, and not only mine, FTP client FileZilla. This is one of the most common and convenient free FTP clients in the blogosphere.

    Downloading and installing the program

    First, you need to download and install the program on your computer. You can do this by following this link http://filezilla.ru/get/ to the official website of the developer and select the appropriate version.

    After installation, you need to connect to your hosting by clicking on the File tab→ Site Manager.

    In the window that opens, click the “New site” button (1) and enter the name of your site (2).

    Afterwards, in the “Host” field (3) insert the IP address of your server. It is given to you when you purchase your hosting, most often by email. It will also indicate “User” and “Password” (5)

    By the way, to activate the login and password fields in the “Login Type” field (4) in the drop-down menu, select “Normal”. Well, to connect, don’t forget to click the “Connect” button (6).

    If you did everything correctly, then in the first window you will see that “Connection has been established.”

    Filezilla interface and features

    Now let's take a closer look at the interface of our program. Visually it is divided into two parts.

    The first part is the Local site (2, 3). In it you see the contents of your computer (disks, folders, files). The second part is the Remote site (section 4, 5). In them we see your hosting objects.

    For a beginner, before getting started, I would recommend creating a backup copy of all blog content on your computer.

    How to create a backup

    To do this, on any disk, except the one where your operating system is installed, create a directory and copy all the files from the remote server into it.

    Let's look at how to do this in more detail, and at the same time learn how to work with the program.

    Click the cursor on any file or folder in window No. 5. Afterwards, using the Ctrl+C key combinations, select the entire contents of window 5. Next, press the right mouse button and a drop-down menu appears, using the functionality of which you can copy, create, delete everything that you think is not necessary, add to task, etc.

    I would like to immediately warn inexperienced users that after deleting a file from the server, it will no longer be possible to restore it, because FileZilla doesn't have a recycle bin feature like Windows does.

    So, somehow I digressed from our educational program; in the drop-down menu, select “Download”. At the same time, do not forget to check that the directory you created in advance is open in window No. 3.

    In my case, this is “Test” on drive D (this can be seen in window No. 2 and No. 3). Well, now we have created a backup copy of our site, and at the same time we have learned how to download files from our hosting to our work disk.

    Example of working with files

    I would like to note that the transfer of the required object to the server must be done in the same order, the only difference is that the selection occurs on the left side (Local Site area).

    Many will ask, what is all this for, why download it to a computer, what will it give me?

    Let's look at a small example: you need to fix the index.php code. We find it on the server and download it to our folder on the computer.

    Note: Please note that you should not use the standard Notepad program in Windows to edit files, because When saving, the encoding may change and the content may not display correctly. To edit the code, I recommend using Notepad++.

    You can read a more detailed description of it on our blog in one of the following articles. And so as not to miss -

    If the opening occurred in another program, then we find our file on our disk, in my case, I click on the Start menu → Computer, select Local disk D and go to our “Test” folder. Next, I right-click on index.php and select “Open with” from the drop-down menu.

    In the window that appears, find Notepad, select it, also don’t forget to check the box “Use the selected program for all files of this type” and click “OK”.

    Now you can safely work with this object.

    I will tell you in more detail how to work with Notepad in the following articles.

    Once you have edited your file, save it and simply drag it into zone 5.

    Since the file already exists on the server, the program will clarify your actions. Don’t be alarmed, in the window that appears, simply select “Overwrite” and click OK.

    Well, now we have figured out what an FTP client is and how it can be used when working with your blog.

    I hope I was able to tell you about all this in an accessible language. Please do not judge me harshly, because this is my first article :). If you have any comments or suggestions, write them in the comments.

    Here are a couple more useful programs:

    Anton Kalmykov

    Based on numerous requests from readers, in this HOWTO we will take a detailed look at installing and configuring an FTP (file) server for Windows using the example of the most popular one - FileZilla Server.

    The choice of FileZilla Server is due to the fact that it is one of the fastest and most reliable (if properly configured) FTP servers with a graphical configuration module. The server is regularly updated and has good documentation in English.

    We'll look at installation and configuration in more detail under the cut. Attention, traffic (lots of screenshots)!

    Server installation

    Download the server installation program from its official website and run it. The first steps of the wizard are standard for most Windows applications, so we will only consider the last two in detail.

    On the page Startup settings You will be asked to select a method to start the FTP server:

    • Install as service, started with Windows (default)— start the server as a Windows service at boot. This option is offered by default. The FTP server will start automatically even if no user is logged in. It is recommended to choose this option;
    • Install as service, started manually— the server will be installed as a service, but will not start automatically. To start, you will need to enter the following command in the Windows console with administrator rights: net start "FileZilla Server"
    • Do not install as service, start server automatically— the server will not be installed as a service, but will be launched as the current Windows user. This option is categorically not recommended, because in case of hacking, the attacker will receive the same rights and can harm the system.

    Here you are asked to select the port that will listen to the administrative interface of the server. Specified by default 14147 .

    On the page Startup settings You are prompted to select a method for launching the administrative interface:


    • Start if user logs on, apply ato all users (default)— launch the administrative interface when any user logs into the system as an icon in the system tray. This item is selected by default;
    • Start if user logs on, apply to current user— launch the administrative interface when the current user logs in;
    • Start manually— run manually. We recommend choosing this option.

    Checkbox in a checkbox Start Interface after setup completes will automatically launch the server administrative interface upon completion of installation. Don't uncheck this box.

    This completes the server installation. Let's start setting it up.

    Setting up an FTP server

    So, start the server and the administrative interface if they are not already running.

    You can start the server like this: Start(All programsFileZilla ServerStart FileZilla Server, or using the command:

    Net start "FileZilla Server"

    You can launch the administrative interface like this: Start(All programsFileZilla ServerFileZilla Server Interface.

    After launching the administrative interface, you will see a window asking you to enter the server IP (for local, leave 127.0.0.1 ), admin port (if you changed it during installation, specify the correct option here, otherwise leave the default value) and password.

    The default password is empty (it can be set in the server settings on the page), so immediately click OK to go to the main window (click to enlarge):


    Most of this window is occupied by the FTP server log, which will display detailed records about connecting users and the transfers they initiated. At the bottom of the window you will see the logins of all connected users, their IP addresses and the progress of downloading/uploading files. When you right-click on a login, you can disconnect the user from the server ( Kick user), or block his access via IP ( Ban user).

    Open server settings by selecting from the menu Edit paragraph Settings.

    General settings


    On this page you can change the main port of the FTP server from 21 to any other if your provider blocks incoming connections to it. Here you can set timeouts in seconds, after which the user will be automatically disconnected from the server. To disable timeouts, set the value 0 . If you want to limit the maximum number of connected users, you can do this in the line Max number of users(default is set 0 , i.e. no restrictions).

    General settings -> Welcome message


    General settings - Welcome message

    Here you can replace the standard greeting sent to clients when connecting to your FTP server. You can enter up to 1024 characters, each line must be no longer than 75 characters.

    Check the checkbox Hide welcome message in log to reduce the size of log files by disabling the recording of this message in them.

    General settings -> IP bindings


    General settings - IP bindings

    On this page you can specify the IP addresses of the network interfaces that the FTP server should listen to. We recommend leaving * , i.e. listening on all possible interfaces.

    General settings -> IP Filter


    General settings - IP Filter

    On this page you can manage the list of banned IP addresses, i.e. addresses from which access to the server will be blocked (top field), as well as addresses that cannot be banned through the administrative interface (bottom field).

    Each address is entered on a new line. In our example, the three specified IP addresses will not be able to connect to the server, and 192.168.98.187 will be impossible to block.


    If you have a router with NAT, then this is one of the most important pages for you. Check the checkbox Use custom port range and specify the range of ports (numbers from 1024 to 65535 are allowed) that will be used in passive FTP mode to connect clients to your server. The minimum range is 100 ports, but it is recommended to specify at least 400. You must forward this range of ports in the settings of your router. It is recommended to specify ports in the range from 30000.

    Here you must indicate your external IP address. You can specify a host name, with the help of which the server will independently determine your external IP address. Our example uses the DynDNS.org service. If you have a static external IP, simply indicate it in the field Use the following IP. If the IP is dynamic, use the DynDNS.org service or similar and in the field Use the following IP enter the resulting hostname (as in our example).

    Check the checkbox (if it is not already selected) Don’t use external IP for local connections to prohibit the use of external IPs for local connections. This will solve NAT Loopback problems on most routers.


    On this page you can enable the use of the FXP protocol, which allows you to transfer files between two FTP servers directly. By default this is disabled (checkboxes are selected). If you need FXP support, uncheck all the checkboxes on this page.


    Paragraph Don’t show passwords in message log allows you to hide user passwords from server logs.

    Start minimized will enable the launch of the administrative interface in minimized tray mode.

    It is not recommended to change the remaining settings of this page.


    Here you can change the port that the administrative interface listens to, as well as the administrator password.

    Check the checkbox Change admin password and set a new administrator password. Latin letters and numbers are allowed.


    On this page you can enable logging of the server to a file by checking the checkbox Enable logging to file. Checkbox in checkbox Limit log file size to will allow you to specify the maximum allowed file size. If the file exceeds the specified number, it will be purged.

    Paragraph Log all to FileZilla Server.log allows you to write all server logs to one file, and Use a different logfile each day creates a new log file every day, so we recommend this option. Checkbox Delete old logfiles after includes automatic cleaning of old logs.

    All logs will be stored in a subdirectory Logs FileZilla Server installation directory.


    Here you can set global download and upload speed limits. These limits will be applied by the server for all users.

    To set the speed limit, check the box Constant speed limit of and specify the value in kilobytes per second.

    In addition to this page, you can set limits for each user individually in the user management module.


    Some FTP clients support compressed data transfer. Compression can be enabled by checking the checkbox Enable MODE Z support. The minimum and maximum compression ratios are also indicated here. Be sure to check the checkbox Exclude private IP address ranges, which will disable compression when transferring files within a local network, or when connecting locally to a server.

    Attention! Enabling compression may negatively impact the performance of the FTP server.


    On this page you can enable automatic IP blocking for users who have entered their password incorrectly a certain number of times. To enable this function, check the checkbox Enable automatic bans, in line Ban IP address after specify the maximum permissible number of incorrect password entry attempts (minimum 10), and in the line Ban for— time in hours for which the offender will be banned.

    FileZilla Server allows you to create an unlimited number of users. Each user has the opportunity to set his own working folder, access parameters, speed limits, etc.

    To manage users in the menu Edit administrative interface, select Users.


    When you first start, in your section Users will be empty, so we must create a user. To do this, click the button Add.

    In the window that opens, indicate the desired login (only Latin letters and numbers are allowed). Here you can also specify a group if they have already been created. Just enter your login and click OK.

    Select the created user in the section Users. You will be prompted to specify a working folder for it, so the page will automatically open.


    Click the button Add in the partition and specify the directory on the disk that the selected FTP user will have access to. After that, select it in the list and click Set as home dir. This action will prohibit escaping from this directory to the top for security reasons.

    For each added directory, you can set read/write rights by checking or unchecking the checkboxes.

    File permissions:

    • Read— allow reading and downloading files from the directory;
    • Write— allow writing files to the directory;
    • Delete— allow deleting files from the directory;
    • Append— allow resuming of files to the server.

    Permissions for directories:

    • Create— allow the creation of subdirectories;
    • Delete— allow deleting directories;
    • List— allow listing (viewing a list of files). Never disable this action (the checkbox must always be checked);
    • Subdirs— extend rights to subdirectories.

    Now go to the page General. Set a password for the user by checking the checkbox Password and registering a password.

    Checkbox Enable account allows you to enable/disable the selected FTP account. Here you can set limits on the maximum number of connections for the user. Speed ​​limits for the user are set on the page.

    To delete a user, select it in the section Users and press Delete. Button Rename allows you to change the login of the selected user (rename), and Copy- clone, i.e. create a copy with a different login.

    After making the desired changes, click the button OK. User settings take effect immediately.

    Enabling anonymous access to the server

    If you need anonymous access to the server, open the user management window, add a user with login anonymous, uncheck the checkbox Password To disable the password request, on the page select your home directory, which will be accessible to everyone, and set the necessary rights (do not forget to disable writing, resuming and deleting files and directories). After clicking OK Anonymous access to the server will be open to everyone.

    Almost any webmaster is faced with the need to find the optimal and perhaps even the best tool for working with his website. Working on a website means copying files to and from the server, deleting and editing, setting access rights to certain files and folders, as well as setting access rights for individual files and folders. And in this article I will tell you how to use the best (in my personal opinion) FTP client Filezilla. The whole need to use this program appears when you create a website and place it on a remote server of a hosting provider.

    So the first thing you need to do is download the FileZilla installation file. You can download it here: filezilla.ru/get. Download the file to your computer from the link. You can choose to download the standard version, which you need to install, and the portable version. The installation is carried out like any other installation. In the case of the portable version, installation will consist of simply creating a folder with files without changing or creating entries in the registry.

    After successful installation, launch the client and proceed to setting up an FTP connection.

    Setting up an FTP connection

    To connect to a remote server, you need to configure this very connection. To do this, you must know the IP address of the server (for example, it looks like: 192.168.123.343) or its URL (for example: www.fileserver.com). Typically, the hosting provider sends the necessary data in a letter after purchase or after registration. Data for connecting to a remote server also includes: login, password, and sometimes the port through which the connection is made (the port is indicated after the colon in the IP address, for example: 192.168.123.343: 8080 ).

    Connecting using FileZilla is done in 2 ways. The first is to directly indicate all the data in the quick connection field, and the second is to create a record with the data in the connection manager. In the first case, after closing the program, the connection data is not saved, in the second, everything will be saved (IP, login and password). Please also note that all saved data for connecting to your server will be available to anyone who gains access to your computer under your account. Therefore, if you don’t even have a password to log into Windows, it is better to use the first connection method, and store the access data in a place inaccessible to others. I highly recommend using KeePass to store all passwords and access data. You can read about how to use it to store FTP access data and at the same time make a connection by pressing one button in the article:.

    We launch the program and in the top line (where it is marked with arrows) indicate the connection data: Host, Login, Password, Port (if necessary) and click the “Quick connection” button.

    If the connection went through without errors, in the right window you will see a list of folders and files that are located on your server to which you connected via an FTP client. Also in the history of actions the status will indicate that “Connection has been established” and “The list of directories has been retrieved.” After your first connection to the server, FileZilla will save the connection history, which can be opened by clicking on the triangle to the right of the “Quick connection” button. All connection information is saved except the password. You will need to enter it every time (unlike the connection manager, where the password is also stored).

    Now you can quickly create an FTP connection to your server. The second method involves creating records with access data to your sites in the site manager. To do this, click the “Open site manager” button. And create a new entry by clicking on the “New Site” button. To identify it, we immediately come up with a name for it (I called it, for example, My Blog 01) and to set the login and password in the login parameters, we change the login type from “Anonymous” to “Normal” (after the change, fields for entering login and password will appear).

    After that, fill in all the necessary fields (Host, User (Login) and Password) and click the “Ok” button if you just want to save the entry, or click “Connect” to save the entry and connect to the server.

    By default, saving passwords is enabled in the settings, but if suddenly, when saving an entry, a notification pops up about the disabled function of saving passwords, you will need to go to the “Edit” >> “Settings” menu and in the “Interface” tab uncheck the “Do not save passwords” option "

    After you create records with data for connecting via FTP to a remote server, in order to connect to the specified host when you open the program, simply click on the triangle to the right of the “Site Manager” button and select the required site from the drop-down list.

    File Operations

    For file operations, FileZilla uses the same methods as in Windows itself. You can take a file from your desktop or an open file folder and drag it into the part of the open FTP client window that contains the content on your remote server. You can use the drag and drop function in the opposite direction in the same way. Those. “grab” a file or folder from the window of your remote server and drag it to the desktop or folder. This copies the object that is being dragged.

    You can upload to the server and download from the server in another way. Select the file you want to upload/download and right-click on it. In the drop-down menu, select “Download” or “Upload to server” depending on the transfer direction.

    To delete a file located on a remote computer, you need to select the file and, after right-clicking on it (you can also select several files or folders using the additional Ctrl or Shift keys when selecting), select “Delete” from the drop-down menu. To rename a file, right-click on the file or folder and select “Rename”

    To create a new folder on the server, right-click anywhere in the window where the files and folders on the remote computer are located and select the “Create Directory” menu. After that, enter a name for the folder. That’s basically all the basic operations with files on a remote computer using the FileZilla FTP file manager. By and large the same as in the operating system.

    Filezilla how to use synchronized browsing

    In the settings when creating a connection in the “Site Manager” there is a very convenient function that allows you, when moving from one folder to another on a remote computer, to switch to the same folders on your computer. This function will also synchronize your files between a folder on the hosting and a folder on your computer.

    You can enable synchronized file viewing when creating an entry for an FTP connection or change an existing one. For this:

    1. Click on the “Site Manager” button
    2. In the manager window, select the site when viewing which you need synchronized browsing or when creating a new connection record.
    3. Open the “Advanced” tab
    4. Specify the package on your local computer (existing or create a new one)
    5. Specify the remote directory on your hosting server (if you don’t know the default directory, you need to ask support and they will provide it to you)
    6. Check the box next to “Use synchronized browsing” and finally click on “Ok” or “Connect”.

    After all these steps, when connecting to the server, FileZilla will synchronize all files and folders and after that you will be able to view and navigate through folders on one server, and FileZilla will automatically navigate through folders on another.

    Setting up access rights to files and folders

    Almost all hosting providers, in the vast majority of cases, use similar operating systems on their Unix servers, which use these same access rights to files and folders. Access rights are rules that allow or prohibit certain actions with files and folders. These rights include:

    • reading files and folders
    • recording
    • file execution

    Rights to file system objects can apply to both a specific user and a group to which you can add several users. The group is created for more convenient management of rights (there is no need to specify for each, but they are changed for the entire group included in it and the system will automatically set access rights for each). The owner's rights are listed separately (this is the one who created the file or folder). Be careful with the owner's rights if you have only one and it's you.

    In order to change access rights, you need to do the following:

    1. Right-click on a file or folder on the remote server.
    2. In the drop-down menu, select “File permissions...”
    3. A window with permission settings will appear. In block 3, the rights for the owner of this file or folder are configured. By checking the boxes, you allow a specific action to be performed with the object, and by unchecking the box, you prohibit it.
    4. Block 4 specifies the rights for the group.
    5. Block 5 specifies the rights for the user.
    6. If you have selected a folder as the object for changing rights, then an additional block will appear that allows you to specify rights for all files and folders located inside the selected folder. By checking the box, 3 options for the task will appear: apply to all objects (folders and files), apply only to files and apply only to folders.

    Select the options you need and click “Ok”.

    Editing files directly from the FTP client

    FileZilla has a very convenient and useful function that I use all the time and I strongly advise you to master it too. This is a function for editing files directly from the program window without having to download the file to your computer and then upload it back to the server. Plus, you can save changes without leaving the editor and see what this led to on the site itself and in case of problems, return the changes back to the file editor and correct the situation. For the most complete convenience when working with files, download and install the best editing program, in my opinion, Notepad++.

    So we assume that you have already installed NotePad++ and you are familiar with the work in general terms. To configure file editing:

    1. Click “Edit”
    2. Select “Settings...”
    3. In the settings window that opens, select “Edit files”
    4. Set the switch to the “Use the following editor:” position.
    5. We indicate the location of the executable file using the “Browse...” button. Usually it is located in the default folder as indicated in my image.
    6. In this block you can specify that the editor specified in the settings above is always used to edit files. However, if you need to edit files with any extension in another program, then select the “Use file associations to open” switch. File associations can be configured as shown in the image below. Specify the file extension and, separated by a space in quotes, the path to the executable file.
    7. Check the box so that Filezilla tracks changes and offers to save the changed file to the server.