sshclient

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: Apache-2.0 Imports: 15 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HostKey

func HostKey(host string) ssh.PublicKey

func PublicKey

func PublicKey(path string, passphrase []byte) (ssh.Signer, error)

Types

type Bastion

type Bastion struct {
	Client *ssh.Client
	Config *ssh.ClientConfig
	Host   string
	Port   string
	Path   string
	// contains filtered or unexported fields
}

func CreateBastion

func CreateBastion(_url *url.URL, passPhrase string, identity string, initial net.Conn, connect ConnectCallback) (Bastion, error)

func (*Bastion) Close

func (bastion *Bastion) Close()

func (*Bastion) Reconnect

func (bastion *Bastion) Reconnect() error

type ConnectCallback

type ConnectCallback func(bastion *Bastion) (net.Conn, error)

Jump to

Keyboard shortcuts

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