Skip to content

Quick start: first SSH session

This walks through a first SSH connection after First launch and unlock. The examples use [email protected]; type your own login and host.

In the User sessions window (left side, star icon), click the magnifier and type the address: user@host, user@host:port or host alone (the login is then asked in the terminal).

An address typed into the User sessions search field

Two rows appear under the field:

Row What it does
Connect to “…” (Enter, nothing is saved) Opens an SSH tab with this address. Nothing is written to sessions.json.
Add “…” as new session Opens the New session form with host, port and login filled in (see step 4).

Press Enter to connect. Other address formats (SFTP only, FTP, SMB, MySQL, S3): Quick connect addresses.

The new tab prints each step of the connection. On the first connection to a host the server’s key is not in ~/.ssh/known_hosts yet:

Connecting to 203.0.113.10:22...
The authenticity of host '203.0.113.10' can't be established.
ssh-ed25519 key fingerprint is SHA256:3mKq0vYJ8xGkZb7wq1v9RjHnT2sUuQ5cX4pLdE6fA0o.
Are you sure you want to continue connecting (yes/no)?

Compare the fingerprint with the server’s own (on the server: ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub), then type yes. KryoDesk appends the key to ~/.ssh/known_hosts, the same file OpenSSH uses (host for port 22, [host]:port otherwise), and prints Permanently added '203.0.113.10' to the list of known hosts. Any other answer ends the connection.

If the key of a known host has changed, the tab prints WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! with the new fingerprint and the known_hosts line it does not match, and refuses the connection. There is no option to go on: after checking the new key, remove the old line (ssh-keygen -R 203.0.113.10) and connect again.

First connection: host key, password and the shell

KryoDesk tries, in this order: keys of the system SSH agent (SSH_AUTH_SOCK), the keys listed in Settings → Connections → SSH Agent → Built-in Agent Keys, then a password. With a key in the agent you are logged in without a prompt.

Otherwise the tab asks:

[email protected]'s password:

The password is not echoed. After a successful login KryoDesk asks Save password in Keychain? [y/N]. y stores it in the encrypted vault (vault.kdbx) under the key password:[email protected]:22; the next connection to the same login, host and port uses it without asking. A wrong password prints Permission denied, please try again.; after 3 tries the tab asks for another login.

Details of every method, key files and passphrases: SSH sessions. How secrets are stored: Where sessions and secrets are stored.

With a key in an SSH agent every later connection logs in without a password, and KryoDesk never reads the private key. Load the key into the system agent once:

Terminal window
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
ssh-add -l # lists the loaded keys with their SHA-256 fingerprints

Add its public key (~/.ssh/id_ed25519.pub) to ~/.ssh/authorized_keys on the server, then connect again: the tab goes from the host key straight to the shell. Without an external agent, add the key file in Settings → Connections → SSH Agent → Built-in Agent Keys. 1Password, Secretive, FIDO security keys and troubleshooting: Connect with an SSH key through an agent.

A Quick connect tab is not saved. To keep the server in the tree, type the address again and choose Add “…” as new session, or click Session at the top left of the toolbar and choose New Session… at the bottom of its menu:

The New session form filled in from the address

  1. Check Remote host, Port and Specify username.
  2. Optionally set Session name (empty = the host) and Folder, for example Production/Web (a new folder is created).
  3. Click Save & connect. The session is written to sessions.json and opens in a new tab; after the first working login a short Save session dialog asks again for name, folder and comment.

The Save session dialog after the first working login

From now on double-click the session in the tree (or select it and press Enter) to connect. All fields: Session dialog.

Click the SFTP icon on the right edge of the window. The panel lists the files of the active SSH tab over the same connection, without a second login.

The SFTP panel of the SSH tab

Double-click a folder to open it, a file to edit it. Upload by dragging files from Finder or File Explorer onto the list. All actions: SFTP panel.

Under the terminal of an SSH tab a bar shows the remote host: host name, CPU, RAM, network traffic up and down, uptime, your login and the number of login sessions on the host, and disk usage per mount point. It is read over the same connection with read-only commands, most values every 3 s (Linux hosts with /proc).

The status bar under the SSH tab

Hover an item for details. Where each value comes from: Host status bar.

When the shell ends or the connection drops, the tab stays and prints Session closed (exit code N). Press R to reconnect or ⌘W to close the tab. (on Windows Ctrl+Shift+W). The reconnect key is set in Settings → Keyboard Shortcuts.

Scroll or pinch to zoom · drag to move · double-click to zoom · Esc or click outside to close