.. _sendFTP: Send a File to an FTP Client ---------------------------- Interoperability between the R66 and FTP protocols is operated by Waarp Gateway FTP. In this scenario, a file is sent from a client Waarp R66 to the Gateway FTP, wher it can be fetched with an FTP client (Filezilla for example). In the end, the file follows the following path: .. uml:: left to right direction rectangle "Site 1" { (server1) } rectangle "Site 2" { (server2) } rectangle "Site 3" { (gwftp) } :ftp-client: << user >> as ftpclient (server1) --> (server2) (server2) --> (gwftp) (gwftp) <-- ftpclient Steps ~~~~~ 1. Put a file named :file:`toftp.file` in the "out" folder of the instance ``server1`` (:file:`/var/lib/waarp/server1/out`). For example, use the command: .. code-block:: bash cp /var/lib/waarp/files/test1.file /var/lib/waarp/server1/out/toftp.file 2. Start the transfer with the command: .. code-block:: bash waarp-r66client server1 send -file toftp.file -to server2 -rule toFTP The file is sent to ``server2``, which forwards it to ``gwftp``. Once received, the file is moved in the directory reserved to the ftp user ``ftp-client`` (:file:`/var/lib/waarp/gwftp/ftp/ftp-client/toFTP`). 3. Open Filezilla (menu :menuselection:`Application --> Internet --> Filezilla`). 4. In Filezilla, open a connection to the Gateway FTP. In the menu bar click on the icon |connectionIcon|, and choose the connection ``toFTP``. Alternatively, connection parameters are: - Server: ``localhost`` - Port: ``6621`` - User name: ``ftp-client`` - Password: ``ftp-client`` - Account: ``toFTP`` 5. The file is shown in the remote file listing on the right. It is ready to be downloaded. .. |connectionIcon| image:: /_static/img/connectionIcon.png