Documentation
¶
Index ¶
- func DecryptSSHKey(key []byte, password []byte) (gossh.Signer, error)
- type Client
- func (c *Client) CloseAll() error
- func (c *Client) Connect() (err error)
- func (c *Client) ConnectString() string
- func (c *Client) DialWithUsers(usernames ...string) error
- func (c *Client) NewClientWithProxy(destinationHost string, destinationPort int, 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
Config *gossh.ClientConfig
IP, User, Keypath string
Port int
Proxy *Client
HostKeyCallback gossh.HostKeyCallback
StrictHostKeyChecking bool
InteractiveTerminalFunc func(*gossh.Client) error
// contains filtered or unexported fields
}
func (*Client) NewClientWithProxy ¶ added in v0.1.2
Source Files
¶
- auths.go
- ssh.go
Click to show internal directories.
Click to hide internal directories.