Swift SSH client library for Apple platforms
Traversio
Traversio is a native Swift SSH and SFTP client library for Apple platforms. The documentation covers package setup, connection configuration, authentication, commands, shells, SFTP, forwarding, and the current release boundary.
Traversio supports evaluation and staged integration. Start with the quickstart, then use the feature matrix and status pages to confirm supported workflows, documented limits, and validation status.
Read By Section
Getting Started
Read package setup, platform requirements, the first connection flow, diagnostics, and connection configuration.
Authentication
Read host-key trust, password authentication, keyboard-interactive authentication, and public-key authentication in one place.
Sessions
Run commands, open shells, and understand how session channels share one connection.
SFTP
Read SFTP client startup, metadata, transfers, and path mutations.
Reference
Browse the public API, supported feature matrix, and documented library limits.
Project
Read architecture notes, release scope, and validation status before deeper evaluation.
Quick Start Example
Start with the closure-based convenience API for a first connection. Useconnect(configuration:) when explicit connection ownership fits your application flow.
let configuration = SSHClientConfiguration(
host: "example.com",
username: "deploy",
authentication: .password(secret),
hostKeyPolicy: .knownHostsFile("~/.ssh/known_hosts")
)
let result = try await SSHClient.withConnection(
configuration: configuration
) { connection in
try await connection.execute("uname -a")
}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.
- Apple-first transport, explicit host trust, and live OpenSSH validation define the current implementation boundary.