Versions in this module Expand all Collapse all v1 v1.1.0 Dec 26, 2025 v1.0.0 Dec 26, 2025 Changes in this version + var DefaultPreferredKeys = []string + var ErrInvalidKeyFormat = errors.New("invalid SSH public key format") + var ErrKeyNotFound = errors.New("SSH key not found in agent") + var ErrNoSSHAgent = errors.New("ssh-agent not available") + var ErrNoSSHKeys = errors.New("no SSH keys found") + func ComputeFingerprint(keyBlob []byte) string + func FindAgentKeyByFingerprint(ag agent.Agent, fingerprint string) (*agent.Key, error) + func ListAgentKeys(ag agent.Agent) ([]*agent.Key, error) + func SignChallengeWithAgent(ag agent.ExtendedAgent, fingerprint, challenge string) (string, error) + func SignChallengeWithKeyFile(keyPath, challenge string) (string, error) + func SignWithAgent(ag agent.ExtendedAgent, fingerprint string, data []byte) (string, error) + func SignWithKeyFile(keyPath string, data []byte) (string, error) + type AgentConnection struct + func GetAgent() (*AgentConnection, error) + func (a *AgentConnection) Close() error + type Config struct + PreferredKeys []string + SSHDir string + type KeyInfo struct + Comment string + Fingerprint string + KeyType string + Path string + PublicKey string + func FindDefaultKey() (*KeyInfo, error) + func FindDefaultKeyWithConfig(cfg Config) (*KeyInfo, error) + func ListLocalKeys() ([]*KeyInfo, error) + func ListLocalKeysWithConfig(cfg Config) ([]*KeyInfo, error) + func ParsePublicKey(path, keyData string) (*KeyInfo, error) + func ReadPublicKey(path string) (*KeyInfo, error)