Documentation

Everything you need to connect partners, automate file handling and integrate SFTP Harbor with your systems.

Quickstart

  1. Create an account and confirm your email. Your first SFTP server is created for you with a name such as acme-3f9a1c.
  2. In the dashboard, open SFTP users and add a user. Paste the partner's public SSH key, or generate a password.
  3. Send the partner the connection details shown after you create the user: host data.sftpharbor.com, port 22, and the user's login, such as acme-uploads.

Guides

Connecting

Each SFTP user has its own login, unique across the service, such as northwind. When a login is taken, the dashboard suggests one with your company name after a dot, such as northwind.acme:

sftp -P 22 northwind@data.sftpharbor.com

Users created before short logins sign in with the server name and the user name, such as acme.northwind. Those logins keep working.

WinSCP, FileZilla and Cyberduck

Protocol SFTP (not FTP or FTPS)
Host data.sftpharbor.com
Port 22
User name acme.northwind
Authentication Private key file, or password

Scripts

# rclone
rclone config create harbor sftp host data.sftpharbor.com user acme.northwind key_file ~/.ssh/id_ed25519
rclone copy ./outbox harbor:inbound

# Python (Paramiko)
import paramiko
client = paramiko.SSHClient()
client.load_system_host_keys()
client.connect("data.sftpharbor.com", username="acme.northwind", key_filename="id_ed25519")
client.open_sftp().put("report.csv", "inbound/report.csv")

Step-by-step guides

Each guide checks the server's host key instead of trusting it on first use. Signed-in customers see the same steps filled in with their own login under Connect a client on the dashboard's overview.

Host keys

Check the server's fingerprint the first time you connect. These are the current host keys of the shared endpoint. They are shared by every customer: the endpoint is one service, and your server is chosen by the login name, not by a separate host.

Loading fingerprints…

The same fingerprints are shown in your dashboard next to the connection details. When keys are rotated, the new keys are announced here and to OpenSSH clients (UpdateHostKeys) 30 days before they are used.

Users and permissions

Permission Can Cannot
Read and write Upload, download, rename, delete, create folders Leave the home folder
Read only List and download Change anything
Upload only List and upload new files, create folders Download, delete or overwrite files

Each user sees only their home folder, which is the root of what they can reach. Leave the home folder empty to give a user the whole server, for example for your own automation. Users can have SSH keys (Ed25519, ECDSA or RSA with 2048 bits or more), a password, or both. Passwords are at least 12 characters.

An IP allowlist on the user or the whole server limits where logins may come from. Entries are addresses or CIDR ranges such as 203.0.113.0/24.

An upload link lets anyone with the URL upload files into one folder from a browser, without an account or SFTP client. Links expire after 1 to 30 days (7 by default), can require a password, and limit the number and size of files. People with the link can never see, download or replace existing files: a file with the same name is saved as name (1).ext.

Webhooks

Add a webhook to have SFTP Harbor send a POST request to your HTTPS endpoint when something happens (step-by-step guide). Events:

Event When
file.uploaded A file was uploaded and closed (SFTP, dashboard or upload link). held is true when the server holds uploads for review.
file.released An admin released a held file; bucket delivery starts now
file.downloaded A file was downloaded
file.deleted A file or folder was deleted
file.restored A file was restored from Recently deleted (from is its old path)
user.login_failed An SFTP login failed
POST /hooks/sftp HTTP/1.1
Content-Type: application/json
Harbor-Signature: t=1795473600,v1=5f1c…e2
Harbor-Event-Id: evt_Lw2xD8mQ1pZr

{
  "id": "evt_Lw2xD8mQ1pZr",
  "type": "file.uploaded",
  "created_at": "2026-11-24T09:20:00.000Z",
  "server": { "id": "srv_…", "slug": "acme" },
  "data": {
    "path": "/inbound/invoices-2026-11.csv",
    "size": 50331648,
    "user": "northwind",
    "via": "sftp",
    "modified_at": "2026-11-24T09:19:58.000Z"
  }
}

Respond with any 2xx status within 10 seconds. Other answers and timeouts are retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours, 12 hours and 24 hours. Redirects are not followed. Use Harbor-Event-Id to ignore duplicates.

Verifying signatures

The signature is an HMAC-SHA256, keyed with the webhook's signing secret, over the timestamp, a dot and the raw request body. Reject requests older than five minutes.

// Node.js
import { createHmac, timingSafeEqual } from "node:crypto";

function verify(secret, rawBody, header) {
  const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
  const age = Math.abs(Date.now() / 1000 - Number(parts.t));
  if (!(age <= 300)) return false;
  const expected = createHmac("sha256", secret).update(`${parts.t}.${rawBody}`).digest("hex");
  return expected.length === parts.v1.length &&
    timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}
# Python
import hashlib, hmac, time

def verify(secret: str, raw_body: bytes, header: str) -> bool:
    parts = dict(p.split("=", 1) for p in header.split(","))
    if abs(time.time() - int(parts["t"])) > 300:
        return False
    expected = hmac.new(secret.encode(), f"{parts['t']}.".encode() + raw_body, hashlib.sha256).hexdigest()
    return hmac.compare_digest(expected, parts["v1"])

Bucket destinations

On Pro and Business, uploads can be delivered to Amazon S3, Cloudflare R2 or any S3-compatible service. Choose copy to keep the file in SFTP Harbor as well, or move to delete it here once delivered. Use credentials that can only write to the bucket and prefix you choose. Use the Test button to write and remove a small test object before relying on a destination. The S3 and R2 guide has the commands and a write-only IAM policy.

REST API

Pro and Business accounts can create API keys under Settings → API keys. Each key has scopes and an expiry date, and is shown only once. Send it as a bearer token:

curl https://app.sftpharbor.com/api/v1/servers \
  -H "Authorization: Bearer sh_…"
Method and path Scope Description
GET /api/v1/servers files:read List SFTP servers
GET /api/v1/servers/{id}/users users:manage List SFTP users
POST /api/v1/servers/{id}/users users:manage Create a user: username, password (or "generate"), keys, home, permission
PATCH /api/v1/servers/{id}/users/{uid} users:manage Disable, change folder, permission or allowlist
POST /api/v1/servers/{id}/users/{uid}/keys users:manage Add an SSH key
GET /api/v1/servers/{id}/files?path=/ files:read List a folder
POST /api/v1/servers/{id}/files/download?path=… files:read Get a download link valid for 5 minutes
GET /api/v1/servers/{id}/trash files:read Files deleted or overwritten in the plan's trash period
POST /api/v1/servers/{id}/trash/{tid}/restore files:write Restore a file; never replaces a newer one (returns the restored path)
POST /api/v1/servers/{id}/links links:manage Create an upload link
GET /api/v1/servers/{id}/activity activity:read Activity log, newest first; page with before
GET /api/v1/servers/{id}/webhooks webhooks:manage List webhooks

Errors use HTTP status codes with a JSON body {"error": "…", "code": "…"}.

curl -X POST https://app.sftpharbor.com/api/v1/servers/srv_…/users \
  -H "Authorization: Bearer sh_…" -H "Content-Type: application/json" \
  -d '{"username": "northwind", "home": "/partners/northwind", "permission": "upload",
       "keys": ["ssh-ed25519 AAAAC3Nza… ops@northwind"]}'

Limits

Item Limit
File name 255 bytes; no control characters or slashes
Path 4096 bytes and 64 levels deep
File size No fixed limit over SFTP; tested with 5 GB files
Upload link file size Up to 50 GB per file, set per link
Active upload links 200 per server
Failed logins 5 per user and address, 30 per address and 50 per user in 15 minutes before back-off