ssh

package
v0.0.0-...-d596df2 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuoteArg

func QuoteArg(argument string) string

Types

type Host

type Host struct {
	User           string
	Host           string
	Port           uint16
	PrivateKeyPath string
	KnownHostsPath string
}

type Session

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

func Connect

func Connect(remote *Host) Session

func (Session) Close

func (session Session) Close()

func (Session) NewSession

func (session Session) NewSession() *ssh.Session

func (Session) Run

func (session Session) Run(cmd string) string

Runs command Caller responsible to sanitize input Returns stdout as string

Jump to

Keyboard shortcuts

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