Documentation ¶
Overview ¶
Yet another connection tunneler/forwarder for SSH in Go
Index ¶
- type Instance
- func (i Instance) ConnectTo() string
- func (i Instance) ConnectToAddr() string
- func (i Instance) ExposedBind() string
- func (i Instance) ExposedHost() string
- func (i Instance) ExposedPort() int
- func (i Instance) Forward() error
- func (i Instance) ProbeExposedBind() (string, error)
- func (i Instance) SSHServer() string
- func (i Instance) SSHUseAgent() bool
- func (i Instance) SSHUsePassword() bool
- func (i Instance) SSHUsername() string
- func (i Instance) TargetHost() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct {
// contains filtered or unexported fields
}
Instance represents an instance of the SSH tunnel
func NewInstance ¶
func NewInstance(sshServer, sshUsername, sshPassword, targetHost, exposedBind string, exposedPort int) (*Instance, error)
NewInstance creates a new SSH tunnel instance
func (Instance) ConnectToAddr ¶
ConnectToAddr tells the host remote clients should connect to
func (Instance) ExposedBind ¶
ExposedBind tells the address we bind on the SSH server side
func (Instance) ExposedHost ¶
ExposedHost tells the host:port we bind on the SSH server side
func (Instance) ExposedPort ¶
ExposedPort tells the port we bind on the SSH server side
func (Instance) Forward ¶
Forward forwards all connections from SSH listener to the target host via SSH tunnel
func (Instance) ProbeExposedBind ¶
ProbeExposedBind gets actual bind address of the remote SSH listener
func (Instance) SSHUseAgent ¶
SSHUseAgent tells, if we use SSH agent for authentication
func (Instance) SSHUsePassword ¶
SSHUsePassword tells, if we use password for SSH authentication
func (Instance) SSHUsername ¶
SSHUsername tells the name of the user we connect to the SSH server
func (Instance) TargetHost ¶
TargetHost tells the host:port we forward requests to