Skip to content

FTP and FTPS

Riversoft® STCP DirectLink exchanges files with partners’ FTP and FTPS (FTP over TLS) servers. The connection is always started by Riversoft STCP DirectLink: there is no FTP service for inbound connections. To receive connections from partners, use SFTP, AS2 or Webhook.

ComponentWho starts the connectionFunction
FTP connectorRiversoft STCP DirectLink (outbound connection)Connects to the partner’s FTP or FTPS server to send and fetch files.

Outbound connections (FTP connector)

Send

    flowchart LR
    subgraph DL[Riversoft STCP DirectLink]
      SA["saida directory"] --> C[FTP connector]
    end
    C -->|send| P[Partner FTP/FTPS server]
  

Fetch

    flowchart LR
    subgraph DL[Riversoft STCP DirectLink]
      C[FTP connector] --> EN["entrada directory"]
    end
    P[Partner FTP/FTPS server] -->|fetch| C
  

Note

Sending and fetching can happen in the same connection: Riversoft STCP DirectLink first sends the files, then fetches the partner’s files. Depending on the mode configured in the user, the connection can also only send or only fetch.

Riversoft STCP DirectLink connects to the partner’s server by schedule, or when the operator starts the connection in the Riversoft Console Portal. In the same connection, it:

  1. sends the files available to the partner in the user’s mailbox (saida directory);
  2. fetches the partner’s files from the agreed directory and writes them to the entrada directory of the mailbox.
StepBehavior
SendThe file is written with a temporary name (temporary directory or extension, when configured) and renamed at the end.
FetchOnly files matching the configured mask are fetched.
After fetchingThe file can be copied to a backup directory on the partner’s server and, if configured, removed from the source directory.
ModeThe transfer always uses passive mode.
SecurityNo TLS (FTP), explicit FTPS or implicit FTPS. In FTPS, the connection can validate the server certificate and use a client certificate.
NetworkThe connection can go through an HTTP, HTTPS, SOCKS4 or SOCKS5 proxy, and through a specific local address.

What to agree with the partner

ItemDescription
ServerFTP or FTPS server address and port.
SecurityFTP, explicit FTPS or implicit FTPS; client certificate and CA, when required.
CredentialUser and password.
DirectoriesWhere to deliver the files and where to fetch them, with the mask of the files to fetch.
Post-processingWhether fetched files must be removed or moved to backup on the partner’s server.

These details are registered in the user, in the Riversoft Console Portal, together with the connection schedule.

Security

  • Use FTPS whenever the partner supports it. In FTP without TLS, user, password and files travel unencrypted.
  • Keep server certificate validation enabled.
  • Prefer SFTP when the partner offers both options.