Skip to content

SFTP (Source)

Install

See the Install guide for the full setup, including Windows PowerShell.

curl -fsSL https://install.skippr.io/install.sh | shClick to copy

Downloads files from an SFTP server.

Configuration

yaml
source:
  kind: sftp
  host: sftp.example.com
  username: user
  password: ${SFTP_PASSWORD}
  remote_path: "/data/*.json"
FieldDefaultDescription
host(required)SFTP server hostname
port22SSH port
username(required)SSH username
passwordPassword authentication
private_key_pathPath to SSH private key
remote_path(required)Remote file path or glob

Namespace: sftp.{filename}

CLI

bash
skippr connect source sftp \
  --host sftp.example.com \
  --username myuser \
  --private-key-path ~/.ssh/id_rsa \
  --remote-path /data/exports/
FlagDescription
--hostSFTP server hostname
--portSSH port (default: 22)
--usernameSSH username
--passwordPassword (or use --private-key-path)
--private-key-pathPath to SSH private key
--remote-pathRemote file path or glob pattern

Authentication

Use either a password or an SSH private key. Prefer private-key auth for long-lived pipelines. For security best practices, we strongly advise against storing the password in skippr.yaml. Use environment variable interpolation instead: replace the password value with your own ${ENV_VAR} reference.

The relevant part of skippr.yaml looks like this:

yaml
source:
  kind: sftp
  password: ${SFTP_PASSWORD}

Set the env var before running skippr:

macOS / Linux

bash
export SFTP_PASSWORD="secret"

Windows PowerShell

powershell
$env:SFTP_PASSWORD = "secret"

Windows Command Prompt

cmd
set SFTP_PASSWORD=secret

Permissions or Network Requirements

The SSH user needs read access to the selected remote path, and the machine running skippr must be able to reach the SFTP host on the configured port.

Troubleshooting

SymptomFix
authentication failedVerify the username, password or private key path, and any host-based access controls.
no files foundCheck remote_path and confirm the SSH user can list and read that location.

Next steps

Install

See the Install guide for the full setup, including Windows PowerShell.

curl -fsSL https://install.skippr.io/install.sh | shClick to copy