tssh

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2025 License: MIT Imports: 16 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandTokens

func ExpandTokens(str string, param *SshParam, tokens string) (string, error)

func NewControlClientConn

func NewControlClientConn(c net.Conn) (ssh.Conn, <-chan ssh.NewChannel, <-chan *ssh.Request, error)

NewControlClientConn establishes an SSH connection over an OpenSSH ControlMaster socket c in proxy mode. The Request and NewChannel channels must be serviced or the connection will hang.

Types

type ConnectionForward added in v1.0.79

type ConnectionForward struct {
	Stdin  net.Conn
	Stdout net.Conn
	// contains filtered or unexported fields
}

func NewControlStdioForward added in v1.0.79

func NewControlStdioForward(c *net.UnixConn, host string, port int) (*ConnectionForward, error)

NewControlStdioForward establishes tunnel over an ControlMaster socket c in Stdio Forward mode.

func (*ConnectionForward) Close added in v1.0.79

func (m *ConnectionForward) Close() error

func (*ConnectionForward) LocalAddr added in v1.0.79

func (m *ConnectionForward) LocalAddr() net.Addr

func (*ConnectionForward) Read added in v1.0.79

func (m *ConnectionForward) Read(b []byte) (int, error)

func (*ConnectionForward) RemoteAddr added in v1.0.79

func (m *ConnectionForward) RemoteAddr() net.Addr

func (*ConnectionForward) SetDeadline added in v1.0.79

func (m *ConnectionForward) SetDeadline(t time.Time) error

func (*ConnectionForward) SetReadDeadline added in v1.0.79

func (m *ConnectionForward) SetReadDeadline(t time.Time) error

func (*ConnectionForward) SetWriteDeadline added in v1.0.79

func (m *ConnectionForward) SetWriteDeadline(t time.Time) error

func (*ConnectionForward) Write added in v1.0.79

func (m *ConnectionForward) Write(b []byte) (int, error)

type SshParam

type SshParam struct {
	// contains filtered or unexported fields
}

func NewSshParam

func NewSshParam(host, port, user string, proxy []string) *SshParam

Jump to

Keyboard shortcuts

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