forward

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package forward implements forwarding SSH sessions to upstream servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Channels

func Channels(ctx context.Context, target *ssh.Client, channels <-chan ssh.NewChannel) error

Channels forwards ssh channels

func EnvironmentFromContext added in v0.2.0

func EnvironmentFromContext(ctx context.Context) map[string]string

EnvironmentFromContext returns the environment from the context.

func NewContextWithEnvironment added in v0.2.0

func NewContextWithEnvironment(ctx context.Context, toAdd map[string]string) context.Context

NewContextWithEnvironment returns a contet with the merged environment

func Requests

func Requests(ctx context.Context, target *ssh.Client, requests <-chan *ssh.Request) error

Requests forwards ssh requests

Types

This section is empty.

Jump to

Keyboard shortcuts

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