Method
requestIdentities()
Requests the list of identities from the SSH agent.
func requestIdentities() async -> [SSHAgentKey]
Return Value
An array of SSH keys available in the agent
Discussion
This method sends an identity request to the agent and parses the response to extract the available keys. Each key includes the public key data and any associated comment or description.
The implementation handles the binary protocol format used by SSH agents, parsing the response according to the OpenSSH agent specification. Keys that cannot be parsed or are of unsupported types are logged and skipped.
See Also
Protocol Handling
A
Agent Protocol Notes
Understand how the package maps OpenSSH agent messages to Swift types.