Versions in this module Expand all Collapse all v0 v0.0.1 Sep 27, 2021 Changes in this version + var ErrExtensionUnsupported = errors.New("agent: extension unsupported") + func ForwardToAgent(client *ssh.Client, keyring Agent) error + func ForwardToRemote(client *ssh.Client, addr string) error + func RequestAgentForwarding(session *ssh.Session) error + func ServeAgent(agent Agent, c io.ReadWriter) error + type AddedKey struct + Certificate *ssh.Certificate + Comment string + ConfirmBeforeUse bool + ConstraintExtensions []ConstraintExtension + LifetimeSecs uint32 + PrivateKey interface{} + type Agent interface + Add func(key AddedKey) error + List func() ([]*Key, error) + Lock func(passphrase []byte) error + Remove func(key ssh.PublicKey) error + RemoveAll func() error + Sign func(key ssh.PublicKey, data []byte) (*ssh.Signature, error) + Signers func() ([]ssh.Signer, error) + Unlock func(passphrase []byte) error + func NewKeyring() Agent + type ConstraintExtension struct + ExtensionDetails []byte + ExtensionName string + type ExtendedAgent interface + Extension func(extensionType string, contents []byte) ([]byte, error) + SignWithFlags func(key ssh.PublicKey, data []byte, flags SignatureFlags) (*ssh.Signature, error) + func NewClient(rw io.ReadWriter) ExtendedAgent + type Key struct + Blob []byte + Comment string + Format string + func (k *Key) Marshal() []byte + func (k *Key) String() string + func (k *Key) Type() string + func (k *Key) Verify(data []byte, sig *ssh.Signature) error + type SignatureFlags uint32 + const SignatureFlagReserved + const SignatureFlagRsaSha256 + const SignatureFlagRsaSha512