sshdialer

package
v0.27.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyMismatchMsg = "key mismatch"
View Source
var ErrKeyUnknownMsg = "key is unknown"

Functions

func NewDialContext

func NewDialContext(url *urlPkg.URL, config Config) (func(ctx context.Context, network, addr string) (net.Conn, error), error)

func NewSSHClientConfig

func NewSSHClientConfig(url *urlPkg.URL, config Config) (*ssh.ClientConfig, error)

Types

type Config

type Config struct {
	Identity           string
	PassPhrase         string
	PasswordCallback   SecretCallback
	PassPhraseCallback SecretCallback
	HostKeyCallback    HostKeyCallback
}

type HostKeyCallback

type HostKeyCallback func(hostPort string, pubKey ssh.PublicKey) error

type SecretCallback

type SecretCallback func() (string, error)

Jump to

Keyboard shortcuts

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