ssht

package
v0.0.0-...-0fb368a Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialSSH

func DialSSH(sshHost string, auth *Auth) (client *ssh.Client, err error)

Types

type Auth

type Auth struct {
	User     string
	Password string
	Keys     []string

	HostKeyCallback ssh.HostKeyCallback
}

type SSHTunnel

type SSHTunnel struct {
	SshHost string
	User    string
	Pwd     string
	Pks     []string
	// contains filtered or unexported fields
}

func (*SSHTunnel) Close

func (t *SSHTunnel) Close() (err error)

func (*SSHTunnel) Connect

func (t *SSHTunnel) Connect() (err error)

func (*SSHTunnel) Dial

func (t *SSHTunnel) Dial(remote string) (conn net.Conn, err error)

func (*SSHTunnel) Running

func (t *SSHTunnel) Running() bool

Jump to

Keyboard shortcuts

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