remote

package
v0.0.0-...-2186419 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShhRun

func ShhRun(user, password, addr, keyPath, loginMethod, command string) (string, error)

func StringKey

func StringKey(key string) ssh.AuthMethod

字符串传入

Types

type SShInfo

type SShInfo struct {
	Host        string
	User        string
	Password    string
	LoginMethod string
	KeyPath     string
	Port        string
	Icommand    string
	Icommands   []string
}

func (*SShInfo) Commands

func (s *SShInfo) Commands() ([]string, error)

func (*SShInfo) One

func (s *SShInfo) One() ([]string, error)

Jump to

Keyboard shortcuts

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