Documentation
¶
Index ¶
- func DecryptSSHKey(key []byte, password []byte) (gossh.Signer, error)
- type Client
- func (c *Client) Connect() error
- func (c *Client) ConnectString() string
- func (c *Client) DialWithUsers(usernames ...string) (*Client, error)
- func (c *Client) SSHConfigString(hostname string) string
- func (c *Client) SetLogger(l *logger.Logger)
- func (c *Client) SetStrictHostKeyChecking(hostKeyChecking bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
*gossh.Client
Keypath, IP, User string
HostKeyCallback gossh.HostKeyCallback
StrictHostKeyChecking bool
InteractiveTerminalFunc func(*gossh.Client) error
// contains filtered or unexported fields
}
func (*Client) ConnectString ¶
func (*Client) SSHConfigString ¶
func (*Client) SetStrictHostKeyChecking ¶ added in v0.0.25
Click to show internal directories.
Click to hide internal directories.