ssh

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2018 License: MIT Imports: 17 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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
	ProxyServer     string
	Proxy           conf.ProxyConfig
	Flag            ConInfoCmdFlag
	Connect         *ssh.Client

	StdinTempPath string
}

func (*ConInfoCmd) CreateSession added in v0.4.4

func (c *ConInfoCmd) CreateSession() (session *ssh.Session, err error)

func (*ConInfoCmd) Run

func (c *ConInfoCmd) Run(session *ssh.Session) 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
	BeforeCmd   string
	AfterCmd    string
	ProxyServer string
	Proxy       conf.ProxyConfig
	LocalUser   *user.User
}

func (*ConInfoTerm) Connect

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

type RunInfoCmd added in v0.4.3

type RunInfoCmd struct {
	ServerList []string
	ConfList   conf.Config
	Tflag      bool
	Pflag      bool
	ExecCmd    []string
}

func (*RunInfoCmd) ConSshCmd added in v0.4.3

func (r *RunInfoCmd) ConSshCmd() int

remote ssh server exec command only

Jump to

Keyboard shortcuts

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