Documentation ¶
Overview ¶
Package agent implements a client to an ssh-agent daemon.
References:
[PROTOCOL.agent]: http://www.openbsd.org/cgi-bin/cvsweb/src/usr.bin/ssh/PROTOCOL.agent
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AgentClient ¶
type AgentClient struct {
// contains filtered or unexported fields
}
AgentClient is a client for an ssh-agent process.
func NewAgentClient ¶
func NewAgentClient(rwc io.ReadWriteCloser) *AgentClient
NewAgentClient creates and returns a new *AgentClient using the passed in io.ReadWriter as a connection to a ssh agent.
func (*AgentClient) Close ¶
func (c *AgentClient) Close() error
Close closes the connection to the daemon.
func (*AgentClient) Insert ¶
func (ac *AgentClient) Insert(s interface{}, comment string) error
Insert adds a private key to the agent. Currently, only *rsa.PrivateKey is supported.
func (*AgentClient) List ¶
func (ac *AgentClient) List() ([]*AgentKey, error)
List returns the identities known to the agent.
Click to show internal directories.
Click to hide internal directories.