ssh

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2021 License: GPL-3.0 Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSHDialer

func NewSSHDialer(s string, d proxy.Dialer) (proxy.Dialer, error)

NewSSHDialer returns a ssh proxy dialer.

Types

type SSH

type SSH struct {
	// contains filtered or unexported fields
}

SSH is a base ssh struct.

func NewSSH

func NewSSH(s string, d proxy.Dialer, p proxy.Proxy) (*SSH, error)

NewSSH returns a ssh proxy.

func (*SSH) Addr

func (s *SSH) Addr() string

Addr returns forwarder's address.

func (*SSH) Dial

func (s *SSH) Dial(network, addr string) (net.Conn, error)

Dial connects to the address addr on the network net via the proxy.

func (*SSH) DialUDP

func (s *SSH) DialUDP(network, addr string) (pc net.PacketConn, writeTo net.Addr, err error)

DialUDP connects to the given address via the proxy.

Jump to

Keyboard shortcuts

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