Where sessions and secrets are stored
KryoDesk keeps the description of a session and its secrets apart. Session files hold no passwords; secrets are stored in an encrypted vault and asked for in the tab’s terminal when missing.
All paths are on the computer running KryoDesk. <config> is
~/Library/Application Support/pl.kryodesk/ on macOS and %APPDATA%\pl.kryodesk\ on Windows;
~ on Windows is %USERPROFILE%.
| What | Where | Notes |
|---|---|---|
| Saved sessions and folders | <config>/sessions.json |
Host, port, login, protocol options, folder, comment. No secrets. Written to sessions.json.tmp first, then renamed over the old file. |
| SSH agent settings | <config>/settings.json |
Use the system SSH agent, the agent socket and the list of built-in agent keys (paths only). |
| SSH host keys | ~/.ssh/known_hosts |
The same file OpenSSH uses. New hosts are appended unhashed as host (port 22) or [host]:port; hashed (` |
| RDP server certificates (built-in engine) | <config>/rdp_known_hosts.json |
SHA-256 fingerprint of the certificate per host:port, accepted on first connection. |
| Pinned sessions (toolbar hearts) | localStorage key session-favorites |
Session ids only. |
| Encrypted secrets | <config>/vault.kdbx |
KeePass KDBX 4 database, group Secrets, one entry per key below. |
| Key of the vault | macOS: Keychain, service pl.kryodesk, item vault-key. Windows: Credential Manager, generic credential vault-key.pl.kryodesk |
32 random bytes used as the KDBX key file. On Windows with Windows Hello, encrypted with a key from a Windows Hello signature. |
The app lock (Touch ID, Apple Watch or the macOS password; Windows Hello on Windows; optionally an authenticator code) opens the vault. Locking removes the secrets from memory, including the private keys decrypted by the built-in agent (Settings → Connections → SSH Agent → Built-in Agent Keys); connections that are already open keep running. A key decrypted while the app is locked serves that one connection and is not kept.
Messages in the terminal still say “Keychain” (for example
Save password in Keychain? [y/N]): the secret goes to the vault described above.
Keys of the secrets
Section titled “Keys of the secrets”Each secret is saved only after a successful login and after you answer y to the question in
the terminal. A rejected saved secret is kept until a new one logs in, because the rejection
can also come from a second factor or a dropped connection.
| Key | Used by | Example |
|---|---|---|
password:<user>@<host>:<port> |
SSH and SFTP password | password:[email protected]:22 |
key-passphrase:<path> |
Passphrase of a private key file, path as written in the session or settings | key-passphrase:~/.ssh/id_ed25519 |
password:ftp://<user>@<host>:<port> |
Plain FTP password | password:ftp://[email protected]:21 |
password:ftps://<user>@<host>:<port> |
FTPS password (explicit and implicit), never sent over plain FTP | password:ftps://[email protected]:21 |
password:smb://[<domain>;]<user>@<host>:<port> |
SMB password; %, ;, @, /, : in domain and user are percent-encoded |
password:smb://CORP;[email protected]:445 |
password:mysql://<user>@<host>:<port> |
MySQL / MariaDB password | password:mysql://[email protected]:3306 |
password:postgres://<user>@<host>:<port> |
PostgreSQL password | password:postgres://[email protected]:5432 |
password:redis://[<user>@]<host>:<port> |
Redis / Valkey password; no user = the default user (requirepass) |
password:redis://[email protected]:6379 |
password:s3://<access key ID>@<host>:<port> |
S3 secret access key | password:s3://[email protected]:443 |
rdp-password:[<domain>\]<user>@<host>:<port> |
RDP password | rdp-password:CORP\[email protected]:3389 |
rdp-gateway-password:<user>@<gateway host>:<port> |
RD Gateway password (FreeRDP engine), port 443 when none is given | rdp-gateway-password:CORP\[email protected]:443 |
The key includes the login and the port, so root@host:22 and root@host:2222 have separate
passwords, and so do the same login over FTP and FTPS. NFS has no password.
An S3 session with an AWS profile reads its keys from ~/.aws/credentials instead and
saves nothing.