Skip to content

Class: SshKeyStore

Stores user-scoped SSH keys and trusted Databricks gateway host keys.

Each workspace and AppKit user receives a separate Ed25519 key pair. The store writes private keys, gateway fingerprints, and OpenSSH known-host files with owner-only permissions beneath the configured root directory.

new SshKeyStore(root?): SshKeyStore

Creates a key store rooted at the default AppKit application-data path.

string = ...

SshKeyStore

ensureRegistered(api, userId, signal?): Promise<StoredKey & object>

Loads or creates the user’s key pair and registers its public key when the workspace does not already contain the matching key hash.

DatabricksSandboxClient

string

AbortSignal

Promise<StoredKey & object>

The local key material and the gateway host returned by Databricks, when available.


knownHost(scope, userId, host, port): Promise<string | undefined>

Returns the stored SHA-256 gateway fingerprint, or undefined when untrusted.

string

string

string

number

Promise<string | undefined>


knownHostsPath(scope, userId, host, port): string

Returns the OpenSSH known-host file path for one workspace, user, and gateway.

string

string

string

number

string


rememberHost(scope, userId, host, port, fingerprint, key): Promise<void>

Stores the accepted gateway fingerprint and OpenSSH host-key entry with owner-only file permissions.

string

string

string

number

string

Buffer

Promise<void>