ssh

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHMessage

type SSHMessage struct {
	User, Password, Host, Cmd string
	Port                      int
	Client                    *ssh.Client
}

func NewSSH

func NewSSH(user, password, host string, port int) *SSHMessage

func (*SSHMessage) Run

func (s *SSHMessage) Run(cmd string) (out string, err error)

执行命令

func (*SSHMessage) Start

func (s *SSHMessage) Start() error

func (*SSHMessage) Stop

func (s *SSHMessage) Stop() error

退出登录

Jump to

Keyboard shortcuts

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