Back to blog

November 24, 2026

SwiftServer's security model: credentials, sync, and the connection path

Where SwiftServer keeps your passwords and keys, how they move between your devices, the route every connection takes, and the short list of other services the app contacts.

SwiftServer's security model: credentials, sync, and the connection path

SwiftServer holds the passwords and private keys for machines you care about. Every secret SwiftServer saves goes into the system Keychain, every connection runs from your device to your server with nothing of ours in between, and the code that speaks SSH and Mosh is public for anyone to read.

Secrets live in the Keychain

SwiftServer stores each secret as an item in the system Keychain: server passwords, identity passwords, SSH private keys and their passphrases, proxy usernames and passwords, and Docker registry logins. The app's database holds only a reference to each item. Addresses, usernames, groups, and the rest of your configuration live in that database.

Each item is a generic password created with the kSecAttrAccessibleAfterFirstUnlock accessibility, in an access group shared by the app and its widget extension. A home screen widget that refreshes a server's status reads the same Keychain item the app uses, so widgets never need a second copy of a secret. On the Mac, the items live in the data protection keychain.

Turn on Settings ▸ Security & Privacy ▸ Require Authentication, and SwiftServer asks for Face ID, Touch ID, or your device passcode (your account password on a Mac) before it:

  • shows a saved server password, identity password, SSH private key, or proxy credential
  • edits or duplicates a server, identity, SSH key, or proxy profile
  • saves, uses, or forgets a Docker registry login

Switching the setting on or off asks for the same authentication.

Every connection goes straight to your server

A connection runs from your iPhone, iPad, or Mac to your server's SSH port, through whatever jump hosts and SOCKS5 or HTTP CONNECT proxies you set up for that machine. GitSwift runs no relay, proxy, or cloud service anywhere in that path. There is no GitSwift server for your sessions, keystrokes, files, or credentials to pass through.

Mosh starts the same way. SwiftServer opens an SSH connection, runs mosh-server new on your server, and receives the session key and UDP port over that connection. From then on the terminal runs over UDP directly between your device and your server, encrypted with AES-128-OCB under that key.

Your credentials go only where a login needs them:

  • With password or keyboard-interactive authentication, the password travels inside the encrypted SSH connection to the server you are logging in to.
  • With key authentication, SwiftServer signs the login on your device. The server receives the public key and the signature, and the private key is never sent to it.
  • A jump host receives its own login, a proxy receives the proxy credentials, and a Docker registry login goes to the Docker Engine on your server, which presents it to that registry when it pulls an image.
  • With iCloud sync on, iCloud Keychain carries your secrets between your own devices.

Host key trust

When you open a terminal, SFTP, or Docker session to a server, or the dashboard connects to it, SwiftServer checks the server's host key. The first time, it pauses before logging in and shows the address and port, the server's SSH identification string, the host key algorithm, and the key's fingerprint in the SHA256: form that ssh-keygen -lf prints, with a Copy button beside it. SwiftServer logs in only after you choose Trust, and then stores the key.

On these connections, when a server presents a key that differs from the stored one, SwiftServer stops and shows Host Key Changed with the stored fingerprint and the new one side by side. The connection continues only if you choose Replace.

On the dashboard, a server whose key is new shows Awaiting Trust. Trust All New Hosts in the toolbar trusts the new key of every waiting server, and of any new hop on its route, which helps after restoring a backup. A changed key is never part of Trust All New Hosts: each one needs its own Replace.

Jump hosts go through the same check at every hop. Home screen widgets never show a trust prompt: they use the keys you trusted in the app, and an unknown or changed key waits for you there. Trusted host keys sync with the rest of your configuration when iCloud sync is on.

Settings ▸ Security & Privacy ▸ Always Trust Host Keys is off by default. Turned on, it accepts new and changed host keys without asking, in the app and in widgets, which suits throwaway lab machines.

Monitoring with nothing installed on the server

The dashboard reads a server's state with ordinary read-only commands over the SSH connection you configured, such as cat /proc/meminfo and cat /proc/loadavg on Linux, and shows the results. Nothing is installed on the server and no agent runs there. Home screen widgets refresh the same way, with a short SSH connection of their own.

iCloud sync stays inside your Apple account

Sync is a Premium feature and stays off until you turn on Settings ▸ iCloud Sync ▸ Sync to iCloud. Once it is on, two Apple systems carry your setup between your iPhone, iPad, and Mac:

  • Configuration syncs through the private CloudKit database of your own iCloud account: servers, identities, public keys, trusted host keys, groups, tags, proxy profiles, port forwarding rules, snippets and their run history, and session history.
  • Secrets sync only through iCloud Keychain, which Apple encrypts end to end. SwiftServer writes no secret to CloudKit: since version 2.0, every secret is stored only in the Keychain.

Both stay in your Apple account. GitSwift has no access to your private CloudKit database or your iCloud Keychain, and can read neither.

What the app contacts besides your servers

The app has no accounts, no analytics, no advertising or tracking SDK, and no crash reporting service. This is the complete list of services the app contacts on its own:

  • RevenueCat validates App Store purchases. The app appears there under a random anonymous ID, with no account or personal details attached.
  • swiftserver.app, during lifetime promotions: the app downloads a small price table to show regional original prices.
  • swiftserver.app, on a Mac with SwiftServer Helper installed for the local terminal: the app checks for a newer helper at most once a day, and helper updates download from there. Automatically check for updates under Settings ▸ Terminal ▸ Local Shell turns the daily check off.
  • ipinfo.io, for the IP information on the dashboard: your server makes this request with curl or wget while the dashboard or a widget is monitoring that server. ipinfo.io sees your server's public IP, and your device never contacts it.
  • Apple: the App Store for purchases, iCloud when sync is on, and Apple Maps for map tiles when a map is on screen.

The protocol code is public

The code that speaks SSH and Mosh and draws the terminal is published as three open-source Swift packages under GitSwiftHQ on GitHub:

  • Traversio, the SSH2 client: key exchange, host key verification, authentication, channels, SFTP, forwarding, and proxies. AGPL-3.0-or-later, with a separate commercial license.
  • TraversioMosh, the Mosh client: the UDP transport, AES-128-OCB packets, and the state synchronization protocol. MIT.
  • SwiftTerminal, the terminal view. MIT.

Traversio negotiates curve25519-sha256 or ecdh-sha2-nistp256 / 384 / 521 for key exchange, with OpenSSH strict key exchange ([email protected]) whenever the server supports it. It verifies ssh-ed25519, ecdsa-sha2-nistp256, and rsa-sha2-512 / rsa-sha2-256 host keys, encrypts with aes128-ctr / aes256-ctr, AES-GCM, or [email protected], and with the CTR ciphers prefers the encrypt-then-MAC forms of HMAC-SHA-2 and UMAC. For older servers SwiftServer also enables SHA-1 ssh-rsa: it comes last in the host key list, after every SHA-2 option, and RSA key logins try rsa-sha2-512 and rsa-sha2-256 before falling back to it.

Anyone can read these packages, build them, and run their test suites. The SSH engine has its own write-up in Why SwiftServer ships its own SSH engine, and the API docs are at traversio.org.

Reporting a security issue

Send security reports to [email protected].