Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialForSSH ¶ added in v0.7.11
DialForSSH is the modified version of net.Dial, would add ":22" automaticlly
Types ¶
type CreatePipeOption ¶ added in v0.4.1
CreatePipeOption contains options for creating a pipe to upstream
type Handler ¶ added in v0.4.1
type Handler func(conn ssh.ConnMetadata, challengeContext ssh.AdditionalChallengeContext) (net.Conn, *ssh.AuthPipe, error)
Handler will be installed into sshpiper and help to establish the connection to upstream the returned auth pipe is to map/convert downstream auth method to another auth for connecting to upstream. e.g. map downstream public key to another upstream private key
type Pipe ¶ added in v0.4.1
Pipe is a connection which linked downstream and upstream SSHPiper searches pipe base on username
type PipeManager ¶ added in v0.4.1
type PipeManager interface { // Return All pipes inside upstream ListPipe() ([]Pipe, error) // Create a pipe inside upstream CreatePipe(opt CreatePipeOption) error // Remove a pipe from upstream RemovePipe(name string) error }
PipeManager manages pipe inside upstream
Click to show internal directories.
Click to hide internal directories.