Documentation ¶
Overview ¶
Package ssh is based on github.com/crosbymichael/slex/blob/master/ssh.go
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct { *ssh.ClientConfig ForwardAgent bool // contains filtered or unexported fields }
ClientConfig stores the configuration and the ssh agent to forward authentication requests
func NewClientConfig ¶
func NewClientConfig(ident string, user string) (*ClientConfig, error)
NewClientConfig returns a config using an ssh agent unless ident is not empty.
func (*ClientConfig) NewSession ¶
func (c *ClientConfig) NewSession(host string) (*Session, error)
NewSession creates a new ssh session with the host. It forwards authentication to the agent when it's configured.
Click to show internal directories.
Click to hide internal directories.