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.

Native Swift
Async/Await
Apple-First Transport
Shell, SFTP, Forwarding

Built for real app integration: start with the quickstart, then verify the supported API surface, workflows, limits, and compatibility evidence.

Library Areas

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.

Swift
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.

Evaluate Traversio