Skip to main content

Connection - FTP​

The FTP Connection stores the address, sign-in and security settings that the Net - FTP/FTPS/SFTP/SCP Task, the Cloud - Sync file(s) Task and the Event Trigger - Remote File Trigger use to connect to an FTP or FTPS server. You can also browse the server with the Connection Explorer.

FTP and FTPS​

Plain FTP sends the user name, the password, the commands and the files unencrypted. FTPS is FTP protected with SSL or TLS. One Connection type covers both: to use FTPS, choose a Cryptographic protocol on the Encryption tab. The separate FTP SSL and FTP TLS types of earlier versions are no longer offered.

FTPS has two modes, which you choose in Security mode:

  • "Explicit": the connection starts unencrypted, usually on port "21", and switches to SSL or TLS before the logon
  • "Implicit": the connection is encrypted from the start, usually on port "990"

Common settings​

FTP Connection, Common settings tab, with Protocol type, Test, Brute force test, Name, Group, Timeout, Code page and Permissions

The Common settings and Proxy tabs are the same for every Connection type that has them; see Common settings and Proxy. For FTP Connections:

  • Test: the Server connects and logs on with the settings in the window, and lists the root folder of the server
  • Brute force test: tries combinations of encryption, port and proxy settings from the Client computer
  • Timeout: how long, in seconds, the Server waits for the server while it connects, lists and transfers. "60" on a new Connection
  • Code page: the character set of file and folder names on the server

Main settings​

These fields are on Connection settings -> Main settings.

FTP Connection, Main settings tab, with the Server, Credentials and Multi-Threading groups

  • Address: the host name or IP address of the FTP server. A leading "ftp://" is removed when you save
  • Port: "21" on a new Connection. Choosing "Implicit" in Security mode on a new Connection changes it to "990"
  • Anonymous: log on as an anonymous user. Username, Password and ACCT are then unavailable
  • Username and Password: the FTP account. Username is required unless Anonymous is selected
  • ACCT: only for servers or proxies that ask for an ACCT value
  • Maximum number of threads (download): from "1" to "8". The Server does not use this value
  • Maximum number of threads (upload): from "1" to "8", "1" on a new Connection. An upload uses the lower of this value and the number of threads set in the Task

Encryption​

FTP Connection, Encryption tab, with the SSL/TLS settings, the channel encryption options, the cipher suite list and the allowed SSL/TLS versions

  • Cryptographic protocol: "No encryption" (plain FTP), "SSL" or "TLS". With "No encryption", the other settings on this tab are unavailable and the Certificates tab is hidden
  • Security mode: "Explicit" or "Implicit", as described in FTP and FTPS
  • Use data channel encryption (PROT P): encrypt file contents and folder listings. Cleared on a new Connection
  • Use command channel encryption: keep the commands encrypted after the logon. Selected on a new Connection. When it is cleared, the Server switches the command channel back to unencrypted after the logon
  • Use SSL session resumption: lets the data connections reuse the SSL or TLS session of the command connection. Some servers require it
  • Auto adjust ciphers: selected on a new Connection, so that the cipher suites are negotiated automatically. Clear it to choose the allowed cipher suites in the list, with Select all and Deselect all. The list starts with every suite selected, including the anonymous suites whose names start with "DH_ANON", which do not authenticate the server; clear those
  • Allowed SSL/TLS versions: the versions the Server may use. Choosing "SSL" in Cryptographic protocol selects SSL version 2 and SSL version 3. Choosing "TLS" selects TLS version 1 to TLS version 1.3. You can then change the selection

When a Task runs, the Server uses the versions that the chosen protocol selects instead of yours if no version is selected, if exactly five versions are selected, or if none of the selected versions belongs to the chosen protocol.

warning

Use data channel encryption (PROT P) is cleared by default. While it is cleared, the Server encrypts only the logon and the commands, and sends file contents and folder listings unencrypted, even with "SSL" or "TLS" selected. Select it to encrypt the files as well.

tip

SSL version 2 and SSL version 3 are obsolete and not secure. Choose "TLS" and select only TLS version 1.2 and TLS version 1.3, unless the server cannot use them.

Certificates​

The Certificates tab is shown when Cryptographic protocol is "SSL" or "TLS". The screenshot shows an earlier version of the tab.

FTP Connection, Certificates tab in an earlier version, with a certificate list, the Manage Certificates button and the auto-accept option

  • Certificate list: select a certificate to send when the FTP server asks for a client certificate. To create or import certificates, click Manage Certificates (see Global - Certificates)
  • Auto-accept server certificates: selected on a new Connection
warning

Auto-accept server certificates is selected by default. While it is selected, the Server does not check the server certificate and accepts any certificate, so it cannot tell the real server from another server that answers at the same address. Clear it, and approve the server's certificate once as described below.

When Auto-accept server certificates is cleared, the Server accepts a server certificate that has been approved before. Approval is stored per certificate serial number and applies to every FTP Connection on the Server. For a certificate that has not been approved, the Server sends it to the Clients that are connected to the Server, and the Task waits up to 5 minutes for an answer:

  • Accept approves and stores the certificate, and the Task continues
  • Deny rejects the certificate, and the connection fails

If no Client is connected, or nobody answers within 5 minutes, the Server writes an error to the log and does not approve the certificate. Whether the connection then fails depends on whether the certificate passes the Server's standard certificate checks.

To approve a server certificate before you schedule the Job, complete the following steps:

  1. Connect a Client to the Server.
  2. Run the Task.
  3. In the Certificate approval window, click Accept.

The Server stores the certificate as approved and accepts it without asking on later runs.

Extra settings​

FTP Connection, Extra settings tab, with the transfer, data connection, date format and log options

  • Transfer type: "Binary", the default, or "ASCII"
  • Sync data channel: select it if the Task stops responding while it opens a data connection, for example when it lists, uploads or downloads. Available with or without encryption
  • KeepAlive: not used by FTP Connections
  • Data connection type: "PASV", the default, or "PORT". With "PASV", the Server opens each data connection to a port that the FTP server offers. With "PORT", the FTP server opens the data connection to the Server
  • Automatically adjust passive mode address for NAT'ed servers: selected on a new Connection. In passive mode, the Server connects data connections to the address of the command connection instead of the address that the FTP server reports. This helps with servers behind NAT that report an internal address
  • Override date format: when the Task cannot read the dates in a server's file listing, the log shows the date format the server sent. Select this option and enter that format so that VisualCron reads the dates with it. The default text is yy-MM-dd HH.mm.ss
  • Log sent messages to task output: writes the commands that the Server sends to the FTP server into the Task output. Passwords are masked
  • Log received messages to task output: writes the replies from the FTP server into the Task output
tip

If you cannot connect, or cannot send or receive files, try "PASV" in Data connection type.

Proxy​

FTP Connection, Proxy tab, with the proxy type, address, port, test URL, authentication and credential fields and the Test button

FTP Connections can use "HTTP Proxy", "SOCKS4" and "SOCKS5" proxies, use Authentication, and are the only type that uses Use proxy for data channel.

warning

A new Connection has Authentication "Not set" and Use credentials selected. With "HTTP Proxy" and those settings, the Server sends the FTP Username and Password to the proxy instead of the proxy account. Set Authentication to "Basic", "Digest" or "NTLM" to send the proxy Username and Password.

Log options in earlier versions​

Earlier versions of the Client had a separate Log tab for the two log options that are now on Extra settings.

FTP Connection, Log tab in an earlier version, with the two log options

Troubleshooting​

Control channel transfer error (error code 10053)​

If Auto-accept server certificates is cleared, check that the server's certificate has been approved, as described in Certificates. Selecting Auto-accept server certificates also avoids the error, but the Server then accepts any certificate. If the error happens on upload, try selecting Use SSL session resumption.

Server cannot perform SSL/TLS negotiation​

The server may support only TLS or only SSL. Try the other value in Cryptographic protocol.

10035, 114690 or 425 error, the file list is empty, or the connection times out after MLSD is sent​

On Extra settings, clear Automatically adjust passive mode address for NAT'ed servers.

534 Protection level negotiation failed​

On Encryption, select Use data channel encryption (PROT P).

SSL Error: 73732​

Check Allowed SSL/TLS versions. Select the versions the server supports, preferably only TLS version 1.2 and TLS version 1.3.

Error: 75796​

Clear Auto adjust ciphers and select the cipher suites the server supports.