sshconnection

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHConnection

type SSHConnection struct {
	Config *ssh.ClientConfig
	Client *ssh.Client
	// contains filtered or unexported fields
}

func Connect

func Connect(host, username, password string) (*SSHConnection, error)

func (*SSHConnection) Disconnect

func (c *SSHConnection) Disconnect() error

func (*SSHConnection) Output

func (c *SSHConnection) Output(cmd string) ([]byte, error)

Jump to

Keyboard shortcuts

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