ssh

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2018 License: MIT Imports: 15 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConSshCmd

func ConSshCmd(serverList []string, confList conf.Config, tFlag bool, pFlag bool, execCmd ...string) int

remote ssh server exec command only

Types

type ConInfoCmd

type ConInfoCmd struct {
	Index           int
	Count           int
	Cmd             []string
	Server          string
	ServerMaxLength int
	Addr            string
	Port            string
	User            string
	Pass            string
	KeyPath         string
	Flag            ConInfoCmdFlag

	StdinTempPath string
}

func (*ConInfoCmd) Run

func (c *ConInfoCmd) Run() int

exec ssh command function

type ConInfoCmdFlag

type ConInfoCmdFlag struct {
	PesudoTerm bool
	Parallel   bool
}

type ConInfoTerm

type ConInfoTerm struct {
	Log     bool
	LogDir  string
	Server  string
	Addr    string
	Port    string
	User    string
	Pass    string
	KeyPath string
}

func (*ConInfoTerm) Connect

func (c *ConInfoTerm) Connect() (err error)

Jump to

Keyboard shortcuts

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