ssh

package
v1.5.10 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteFileCommands

func WriteFileCommands(user, path string, permissions uint16) (string, string)

Types

type Machine

type Machine struct {
	// contains filtered or unexported fields
}

func NewMachine

func NewMachine(monitor mntr.Monitor, remoteUser, ip string) *Machine

func (*Machine) Execute

func (c *Machine) Execute(stdin io.Reader, cmd string) (stdout []byte, err error)

func (*Machine) ReadFile

func (c *Machine) ReadFile(path string, data io.Writer) (err error)

func (*Machine) Shell added in v0.26.0

func (c *Machine) Shell() (err error)

func (*Machine) UseKey

func (c *Machine) UseKey(keys ...[]byte) error

func (*Machine) WriteFile

func (c *Machine) WriteFile(path string, data io.Reader, permissions uint16) (err error)

Jump to

Keyboard shortcuts

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