client

package
v0.0.0-...-a33ee25 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialWithKey

func DialWithKey(auth *config.AllConfig) (*ssh.Client, error)

通过key文件

func DialWithKeyAndPassword

func DialWithKeyAndPassword(auth *config.AllConfig) (*ssh.Client, error)

key+password

func DialWithPasswd

func DialWithPasswd(auth *config.AllConfig) (*ssh.Client, error)

用户名密码

func GetClient

func GetClient(host config.AllConfig) (*ssh.Client, error)

func New

func New(cli *ssh.Client) error

Types

type SSHTerminal

type SSHTerminal struct {
	Session *ssh.Session
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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