marmotdata/sftp
Discover directories and files from an SFTP server
The SFTP plugin discovers directories and files from an SFTP server, and infers columns for delimited and JSON files.
It connects with golang.org/x/crypto/ssh and github.com/pkg/sftp, using a password or a private key (RSA, Ed25519 or ECDSA).
Names
A Folder or File is named by its path below the configured root, with no leading slash: incoming/2026-09 and incoming/2026-09/orders.csv. A root other than / contributes nothing to the name, so the same tree served from /data or from / produces the same assets.
The root itself is not an asset. The directories directly below each configured root are the top of the tree.
Columns
.csv and .tsv files get columns typed INT, FLOAT, BOOLEAN, DATETIME or STRING from up to sample_rows rows. .json (an array of objects) and .jsonl files get the union of their top-level keys plus one level of nesting, written parent.child. .parquet and .avro files are catalogued but get no columns.
No file is read beyond max_read_bytes. A row count taken from a truncated read is marked row_count_exact: false.
Limits
max_depth and max_files bound a run. Symlinks are skipped unless follow_symlinks is set, and a directory already walked is never walked again, so a link pointing back up the tree cannot loop.
In the UI
Point and click, no config file needed.
- Open Runs and choose Create pipeline.
- Pick SFTP from the plugin list.
- Fill in the settings, set a schedule and save.
With the CLI
Save a YAML config, then run marmot ingest.
Not using plugins? Other ways to populate Marmot
Configuration
Fields marked Required must be set.
tagsList of textTags to apply to discovered assets
external_linksList of groupsExternal links to show on all assets
nameTextDisplay name for the link
iconTextIcon identifier for the link
urlTextURL to the external resource
filterGroup of settingsFilter discovered assets by name (regex)
includeList of textInclude patterns for resource names (regex)
excludeList of textExclude patterns for resource names (regex)
zoneTextTells this system apart from others of the same technology and becomes part of every asset's MRN
hostText RequiredSFTP server hostname or IP address
portNumberSFTP server port
usernameText RequiredUser to log in as
passwordSecretPassword for the user
private_keySecretPEM private key for the user, RSA, Ed25519 or ECDSA
private_key_passphraseSecretPassphrase protecting the private key
host_keyTextServer public key to trust, as written in known_hosts. Empty means any key is accepted
root_directoriesList of textDirectories to walk
max_depthNumberLevels below each root to walk
max_filesNumberStop after this many files
follow_symlinksYes or noWalk into symlinks instead of skipping them
structured_onlyYes or noOnly catalogue csv, tsv, json, jsonl, parquet and avro files
include_columnsYes or noInfer columns for delimited and JSON files
include_statisticsYes or noEmit size, row count and column count statistics
sample_rowsNumberRows read from a file to infer its columns
max_read_bytesNumberMost bytes to read from a single file
Assets emitted
Metadata this plugin attaches to each discovered asset.
Folder
The metadata fields the SFTP plugin emits for a Folder asset. The counts and the size cover a folder's immediate contents, not its whole subtree.
File
The metadata fields the SFTP plugin emits for a File asset.
Delimited Column
The per-column fields inferred for a csv or tsv file.
JSONColumn
The per-column fields inferred for a json or jsonl file. A nested key is written parent.child.