ssh

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SShClient

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

SShClient - an SSh connection client

func NewSShClient

func NewSShClient(host string, port int, user, passwd string, timeout time.Duration) *SShClient

NewSShClient - create an new SShClient

func (*SShClient) ExecCmd

func (s *SShClient) ExecCmd(cmd string) ([]byte, error)

ExecCmd - exec shell command in remove server

Jump to

Keyboard shortcuts

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