Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handshake ¶
type Handshake interface {
// Handshake handshakes downstream client, and returns a channel where the client object is then sent.
// Because this function has to be run *concurrently* with ssh.NewServerConn(), it's never right to
// call this synchronously, and the API makes that clear.
Handshake(conf *ssh.ServerConfig, target string) <-chan *ssh.Client
}
Handshake is the auth type proxied.
type SSHProxy ¶
type SSHProxy struct {
// Conn is the connection to downstream client.
Conn net.Conn
// Forwarded-for address.
Forwarded string
// Target is the name of the upstream server.
Target string
// Auther is the handshake implementation.
Auther Handshake
// PrivateKey is the private key of the SSHProxy server.
PrivateKey ssh.Signer
// Logging settings.
LogUpstream, LogDownstream bool
LogDir string
// contains filtered or unexported fields
}
SSHProxy proxies a connection to a target.
Directories
¶
| Path | Synopsis |
|---|---|
|
./listener -listen 0.0.0.0:2022 ./next-program -conn_fd '{}'
|
./listener -listen 0.0.0.0:2022 ./next-program -conn_fd '{}' |
Click to show internal directories.
Click to hide internal directories.