Documentation ¶
Overview ¶
Package serveonssh provides a type that allows communicating with services on an SSH endpoint that are listening on a domain socket.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy handles forwarding traffic sent on a domain socket over SSH to a remote domain socket.
func New ¶
func New(sshEndpoint, remoteSocket string, config *ssh.ClientConfig) (Proxy, error)
New creates a new Proxy and Dialer. sshEnpoint is the host:port of the remote machine. remoteSocket is the path to the Unix socket that the service will be listening to. config is the SSH config needed to dial. Proxy is doing the forwarding of our traffic to the remote side. Dialer dials the remote side over SSH.
Click to show internal directories.
Click to hide internal directories.