vmux
Connecting

Import & Export Hosts

Import from SSH config, export encrypted backups, and transfer hosts between devices.

Overview

vmux can import hosts from standard SSH config files and export your saved hosts for backup or transfer to another device. All import and export controls are in the Hosts Window utilities tab.

Import from SSH Config

Tap Import Hosts and select your SSH config file (typically ~/.ssh/config). vmux parses the file and creates a saved host for each concrete Host entry.

Supported Directives

DirectiveMapped To
HostHost pattern (used as the label). Wildcard-only patterns (*) and Match blocks are skipped.
HostNameResolved hostname or IP address
PortSSH port (default 22)
UserUsername
IdentityFileRecorded for reference (Secure Enclave keys are used for authentication)
ProxyJumpJump host configuration
ForwardAgentAgent forwarding toggle (yes/no)
ServerAliveIntervalKeepalive interval in seconds
ServerAliveCountMaxMaximum keepalive messages before disconnect
LocalForwardLocal port forwarding rules
RemoteForwardRemote port forwarding rules

Resolution Behavior

The parser follows OpenSSH semantics:

  • First match wins -- for each directive, the first matching Host block's value is used.
  • Wildcard fallback -- Host * blocks provide default values for any directive not set by a more specific block.
  • Pattern expansion -- Host lines with multiple space-separated patterns create separate entries for each pattern.
  • Entries with wildcards in their pattern (e.g., prod-*) are skipped because they don't represent a single host.

Duplicate Detection

Hosts that already exist in vmux (matching on hostname, port, and username) are skipped during import. The status message reports how many hosts were imported and how many duplicates were skipped.

Export as SSH Config

Tap Export SSH Config to generate a standard SSH config file from your saved hosts. The output can be copied to the clipboard and pasted into ~/.ssh/config on another machine.

Passwords are not included in SSH config exports. Only connection parameters (host, port, username, jump host, port forwards, keepalive) are exported.

Encrypted Backup

Tap Export Encrypted to create a passphrase-protected backup of all your hosts and identities in .vmuxbackup format.

Unlike SSH config export, encrypted backups include passwords and identity data. The backup is encrypted with the passphrase you provide.

Creating a Backup

  1. Tap Export Encrypted.
  2. Enter a passphrase. You will need this passphrase to restore the backup.
  3. The backup file is saved with the name vmux-hosts-YYYY-MM-DD.vmuxbackup.
  4. Use the system Share sheet to transfer the file to another device or storage location.

What's Included

DataIncluded
Host configurationsYes
Identity recordsYes
PasswordsYes (encrypted)
Secure Enclave keysNo (hardware-bound, cannot be exported)
Theme overridesYes
Port forwarding rulesYes
Jump host settingsYes

Import Encrypted Backup

Tap Import Hosts and select a .vmuxbackup file. vmux detects the encrypted format and prompts for the passphrase.

After decryption, hosts and identities are merged into your current configuration:

  • Identities are imported first since hosts may reference them.
  • Duplicate hosts (matching on hostname, port, and username) are skipped.
  • Duplicate identities (matching on ID) are skipped.
  • Passwords from the backup are restored to the device Keychain.

The status message reports the number of hosts and identities imported.