webssh

package
v0.0.0-...-9f300ed Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ws *websocket.Conn, opt *SSHClientOption) error

func NewSSHClient

func NewSSHClient(option *SSHClientOption) (*ssh.Client, error)

func NewSSHClientWithPassword

func NewSSHClientWithPassword(option *SSHClientOption) (*ssh.Client, error)

func NewSSHClientWithPrivateKey

func NewSSHClientWithPrivateKey(option *SSHClientOption) (*ssh.Client, error)

Types

type AuthModel

type AuthModel int8

type SSHClientOption

type SSHClientOption struct {
	Addr       string `note:"地址"`
	User       string `note:"用户名"`
	Password   string `note:"密码"`
	PrivateKey string `note:"私钥"`
}

Jump to

Keyboard shortcuts

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