ssh

package
v0.1.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteScript

func ExecuteScript(host string, c *SSHConfig, script, scriptName string) (string, string, error)

ExecuteScript executes the given script on the remote host via stdin. Returns stdout and stderr.

scriptName is used only for readability of error strings.

func ExitMaster

func ExitMaster(host string, c *SSHConfig) error

ExitMaster executes `ssh -O exit`

Types

type SSHConfig

type SSHConfig struct {
	ConfigFile string
	Persist    bool
}

func (*SSHConfig) Args

func (c *SSHConfig) Args() []string

func (*SSHConfig) Binary

func (c *SSHConfig) Binary() string

Jump to

Keyboard shortcuts

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