Swift SSH client library for Apple platforms
Traversio
Native Swift SSH and SFTP for Apple apps. Traversio gives Swift clients async/await connections, host-key trust, command execution, PTY shells, file transfer, forwarding, SCP helpers, and structured diagnostics.
Built for real app integration: start with the quickstart, then verify the supported API surface, workflows, limits, and compatibility evidence.
Library Areas
Getting Started
Install the package, open the first connection, and choose the right connection settings.
Authentication
Use host-key trust, password auth, keyboard-interactive auth, public keys, callbacks, and SSH agents.
Sessions
Run commands, open shells, and understand how session channels share one connection.
SFTP
List directories, inspect metadata, transfer files, resume work, and mutate paths.
Reference
Check the public API, supported feature matrix, SCP helpers, and library limits.
Project
Review architecture, release scope, current status, and validation evidence.
Commercial License
Purchase commercial terms for proprietary use outside AGPL obligations.
Quick Start Example
Start with a Swift configuration value, explicit host-key trust, and a closure-scoped connection that closes automatically when the command finishes.
let configuration = SSHClientConfiguration(
host: "demo.traversio.example",
username: "traversio",
authentication: .password(secret),
hostKeyPolicy: .knownHostsFile("/Users/me/.ssh/known_hosts")
)
let result = try await SSHClient.withConnection(configuration: configuration) { connection in
try await connection.execute("echo traversio")
}Library Snapshot
- The public API is designed around Swift types and structured connection ownership.
- Connection, session, and SFTP workflows use async/await and structured concurrency throughout the public surface.
- The current library surface covers commands, shells, SFTP, host-key trust, transport policy, and forwarding.
- Core APIs now sit at the package floor, while Apple 26+ systems prefer the newer transport backend automatically.
- OpenSSH, Dropbear, and AsyncSSH all have current live-validation coverage, including forwarding and rekey paths.