Documentation Language: Swift

Initializer

init(agentKey:agent:)

Creates a new SSH agent-backed private key.

init(agentKey: SSHAgentKey, agent: SSHAgent)

Parameters

agentKey

The SSH agent key to use for signing operations

agent

The SSH agent instance for communication

Discussion

This initialiser creates a private key interface that delegates signing operations to the specified SSH agent. The agent key contains the metadata and public key information needed for authentication, whilst the actual private key material remains securely stored within the agent.