ssh

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CERT_PASSWORD        = 1
	CERT_PUBLIC_KEY_FILE = 2
	DEFAULT_TIMEOUT      = 3 // second
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SSH

type SSH struct {
	Ip   string
	User string
	Cert string //password or key file path
	Port int
	// contains filtered or unexported fields
}

func (*SSH) Close

func (ssh_client *SSH) Close()

func (*SSH) Connect

func (ssh_client *SSH) Connect(mode int)

func (*SSH) RunCmd

func (ssh_client *SSH) RunCmd(cmd string)

Jump to

Keyboard shortcuts

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