-
Create and enable virtualenvironment
python -m venv env; source env/bin/activate -
Install module
python -m pip install python-ftp-server -
Run the FTP server
ftp_server -d "directory/to/share"
or equivalently:
python -m python_ftp_server -d "directory/to/share"
will print:
Local address: ftp://<IP>:60000
User: <USER>
Password: <PASSWORD>Connect with ftp client
Copy and paste your IP, USER, PASSWORD, PORT into FileZilla (or any other FTP client):

- aria2c
- curl
| Option | Default | Description |
|---|---|---|
-u, --user |
user |
Username |
-p, --password |
random 20 chars | Password |
-r, --readonly |
off | Serve files read-only |
-d, --dir |
current directory | Directory to share |
--ip |
local IP | Address to bind |
--port |
60000 |
Control port |
--port_range |
60001-60100 |
Passive data port range |
--tls |
off | Require FTPS (TLS) with a self-signed cert |
Example with TLS:
ftp_server -d /tmp --tls