ssh

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Timeout  time.Duration
	Host     string
	User     string
	Password string
	Port     int
}

func (*Client) Connections

func (c *Client) Connections() (*ssh.Client, *ssh.Session, error)

func (*Client) RunCommand

func (c *Client) RunCommand(command string) (string, error)

func (*Client) RunCommandPty

func (c *Client) RunCommandPty(command string)

func (*Client) RunCommands

func (c *Client) RunCommands(commands []string) ([]string, error)

Jump to

Keyboard shortcuts

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