ssh

package
v0.0.25 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 26, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptSSHKey

func DecryptSSHKey(key []byte, password []byte) (gossh.Signer, error)

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 InitClient

func InitClient(keyname string, keyFolders ...string) (*Client, error)

func (*Client) Connect

func (c *Client) Connect() error

func (*Client) ConnectString

func (c *Client) ConnectString() string

func (*Client) DialWithUsers

func (c *Client) DialWithUsers(usernames ...string) (*Client, error)

func (*Client) SSHConfigString

func (c *Client) SSHConfigString(hostname string) string

func (*Client) SetLogger

func (c *Client) SetLogger(l *logger.Logger)

func (*Client) SetStrictHostKeyChecking added in v0.0.25

func (c *Client) SetStrictHostKeyChecking(hostKeyChecking bool)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL