tssh

package
v1.2.5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2025 License: MIT Imports: 16 Imported by: 0

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