Documentation ¶
Overview ¶
Package sshagent provides the ability to use openssh's ssh-agent to carry out key signing operations using keys stored therein. This allows ssh keys to be used as Vanadium principals.
Index ¶
- func NewSigningService() signing.Service
- func SetAgentSockName(service signing.Service, name string)
- type Client
- func (ac *Client) Close(ctx context.Context) error
- func (ac *Client) Lock(passphrase []byte) error
- func (ac *Client) SetAgentSockName(name string)
- func (ac *Client) Signer(ctx context.Context, publicKeyFile string, passphrase []byte) (s security.Signer, err error)
- func (ac *Client) Unlock(passphrase []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewSigningService ¶
NewSigningService returns an implementation of signing.Service that uses an ssh-agent to perform signing operations.
func SetAgentSockName ¶
SetAgentSockName will call the SetAgentSockName method on the specified signing.Service iff it is an instance of sshagent.Client.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client represents an ssh-agent client.
func (*Client) SetAgentSockName ¶
SetAgentSockName specifies the name of the unix domain socket to use to communicate with the agent. It must be called before any other method, otherwise the value of the SSH_AUTH_SOCK environment variable is used.