Vault
Storing Credentials
Associate vault secrets with SSH connections for secure passwordless connect.
Adding a credential to the vault
When creating or editing a connection:
- Set Auth method to Vault secret.
- A password input appears — enter the SSH password or passphrase.
- Save the connection.
Ternux encrypts the credential and stores it alongside the connection entry in config.yaml. The plain-text password is discarded from memory once encrypted.
Using a vault credential
When you connect to a host whose auth method is Vault secret, Ternux automatically:
- Unlocks the vault (prompts for vault password if not already unlocked).
- Decrypts the stored credential.
- Passes the credential to the SSH auth exchange.
- Discards the plain-text credential from memory.
You never see the password again — Ternux handles the entire flow.
Editing a stored credential
Open the Edit Connection dialog → change the password field → Save. The old encrypted value is replaced with the new one.
Removing a credential from the vault
Set the connection's auth method to Password (plain) or SSH Key. The vault entry is cleared automatically on save.
Vault security model
| Property | Detail |
|---|---|
| Encryption | AES-256-GCM |
| Key derivation | Argon2id (memory-hard) |
| Storage location | config.yaml — vault_blob field |
| In-memory exposure | Decrypted key held in memory only during an active session |