sshserverportforward

package
v0.0.0-...-8f5e877 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ProcessPortForwardNewChannelRequests

func ProcessPortForwardNewChannelRequests(newChannelRequests <-chan ssh.NewChannel) <-chan ssh.NewChannel

does same for ssh.NewChannel as above ProcessPortForwardRequests() does for ssh.Request

func ProcessPortForwardRequests

func ProcessPortForwardRequests(requests <-chan *ssh.Request, serverConn *ssh.ServerConn) <-chan *ssh.Request

returns a new channel that receives all non-portforwarding requests. if you don't do anything with them call "go ssh.DiscardRequests()"

func RejectChannelRequests

func RejectChannelRequests(channelRequests <-chan ssh.NewChannel)

since you're embedding port forwarding in a SSH server, there's a good chance you might need to discard channel requests from client -> server, since they're mainly used for interactive sessions

func SetLogger

func SetLogger(logr *log.Logger)

this is ugly design

Types

This section is empty.

Jump to

Keyboard shortcuts

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