xssh

package
v0.0.0-...-89edfd8 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHClient

type SSHClient struct {
	Client *ssh.Client
}

func NewSShClient

func NewSShClient(ip string, port int64, user string, password string) (sc *SSHClient, err error)

New ssh client connect

func (*SSHClient) Close

func (sc *SSHClient) Close()

Close ssh connect

func (*SSHClient) Commands

func (sc *SSHClient) Commands(commands []string) (bytes.Buffer, error)

Run commands

Jump to

Keyboard shortcuts

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