@blockchaincommons/components - v1.0.0-beta.4
    Preparing search index...

    Module ssh-agent-node

    A connection to the SSH agent $SSH_AUTH_SOCK names, over the ssh-agent protocol on a node:net Unix socket.

    Subpath entry @blockchaincommons/components/ssh-agent-node: the one module of this package that imports from node:, kept off the root and /kdf entries so that they stay browser-safe.

    import { EncryptedKey, sshAgentParams } from "@blockchaincommons/components/kdf";
    import { connectToSshAgent } from "@blockchaincommons/components/ssh-agent-node";

    const agent = await connectToSshAgent();
    const locked = await EncryptedKey.lockWithAgent(sshAgentParams(""), secret, contentKey, { agent });
    const contentKey2 = await locked.unlockWithAgent(secret, { agent });
    connectToSshAgent
    SshAgent → SshAgent