Skip to main content

ftp3sftp - A simple FTP to SFTP bridge

Usecase

FTP is a protocol that was introduced in the 80's and today has the major problem of non-encrypted communication. Due to this problem, today there are two well-known advancements of the protocol: FTPS and SFTP. Unfortunately, there are still legacy systems in the wild that can only communicate with FTP servers. Depending on the importance and maintenance possibilities of the system, the function of working with one of the encrypted variants cannot be implemented with a realistic effort. If no middleware is then available, there are few options. This is where ftp3sftp comes in and reveals a way to enable communication via SFTP without having to make major changes to the legacy system.

How ftp3sftp works

ftp3sftp itself starts an FTP server to which an FTP client (for example the legacy system) can connect. But in the background a connection to a SFTP server is established after a successful login on the FTP server. All information that the FTP client receives actually comes from the SFTP server. They are passed through directly in both directions. This also means that if the FTP client uploads a file, for example, and receives feedback from ftp3sftp that the file has been successfully transferred, the client can be sure that the file has actually arrived on the SFTP server.

If the FTP client (for example, the legacy system) and ftp3sftp are running on the same machine or at least on the same network, and the target SFTP server is only accessible via the Internet, it can thus be ensured that the data transfer via the Internet is appropriately encrypted using the SFTP protocol.

How to install ftp3sftp

You can install it using uv:

uv tool install ftp3sftp

How to use ftp3sftp

Command line arguments

We imagine the following situation: A legacy software is configured to connect to an FTP server connected at the following URL: 127.0.0.1:21 as user ftp-user and password secret. The software also expects it to write to the following directory as its home directory: /home/ftp-user. The bridge should connect to your SFTP server, which can be reached at external-sftp-server:22. It should connect with the user sftp-user and the password 1234512. On the SFTP server /home/sftp-user is the home directory. Also, a log is to be written to the /log/ftp3sftp directory.

For this configuration you have to call ftp3sftp with this arguments: ftp3sftp --ftp ftp-user:secret@127.0.0.1:21:/home/ftp-user --sftp sftp-user:1234512@external-sftp-server:22:/home/sftp-user --logdir /log/ftp3sftp

Both, the --ftp and the --sftp parameter have the same format: username:password@host:port:/homedirectory. Note: the homedirectory can also be something like /. It depends on the server or client configuration.

You can see the all command line arguments by using --help.

Store command line arguments in a textfile

You can store your command line options in a textfile. For the example above it could contain the following data:

--ftp
ftp-user:secret@127.0.0.1:21:/home/ftp-user
--sftp
sftp-user:1234512@external-sftp-server:22:/home/sftp-user
--logdir
/log/ftp3sftp

Whe you do so, your only paramter to ftp3sftp could be the path to the file with a as prefix. If your configuration is in /etc/ftp3sftp.conf you can call ftp3sftp like this: ftp3sftp @/etc/ftp3sftp.conf So it will read its command line arguments from the file.

Metadata

Release files for ftp3sftp 0.7.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ftp3sftp 0.7.2
File Size Uploaded Provenance Actions
ftp3sftp-0.7.2.tar.gz 50.4 kB With provenance Details for ftp3sftp-0.7.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ftp3sftp 0.7.2
File Interpreter ABI Platform Actions
ftp3sftp-0.7.2-py3-none-any.whl Python 3 none any Details for ftp3sftp-0.7.2-py3-none-any.whl

Total release size: 70.0 kB

Release files / ftp3sftp-0.7.2.tar.gz

Download URL ftp3sftp-0.7.2.tar.gz
Size 50.4 kB
Tags Source
SHA-256 checksum
How to use checksums
f4f02b694b0e0153f962ff5ca0f87482fb3f24a3cb0fde51af4d7fb5db078c0f
BLAKE2b-256 checksum
How to use checksums
8c5b97e752b2c2c2ed3909e10f4a701273f33215bb34ba14356ca678c25ff6f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.

Transparency log

Release files / ftp3sftp-0.7.2-py3-none-any.whl

Download URL ftp3sftp-0.7.2-py3-none-any.whl
Size 19.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
509542089407d5e5fd3c666ae237db7a74cd4a1cad69089cf4dd803237b66d2b
BLAKE2b-256 checksum
How to use checksums
731d302266fdfe84338830149c443e5db1d76240c005f8b5fac723b9fbfb5089
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.

Transparency log

Security for ftp3sftp 0.7.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ftp3sftp-0.7.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 28, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page