client

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2026 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenUDPReuse

func ListenUDPReuse(ctx context.Context, network string, laddr *net.UDPAddr) (*net.UDPConn, error)

func ListenUDPWithAutoMulticast

func ListenUDPWithAutoMulticast(udpAddr *net.UDPAddr, ifaceName string, conn *net.UDPConn) (*net.UDPConn, error)

ListenUDPWithAutoMulticast listens on udpAddr. If udpAddr.IP is multicast, it binds to the wildcard address on the same family+port and joins the multicast group. Otherwise it just listens normally.

If ifaceName is non-empty, it will join only on that interface. Otherwise it tries all "up" multicast-capable interfaces (excluding loopback).

Types

type Client

type Client struct {
	*ssh3.Conversation
	// contains filtered or unexported fields
}

func Dial

func Dial(ctx context.Context, config *client_config.Config, qconn quic.EarlyConnection,
	roundTripper *http3.RoundTripper,
	sshAgent agent.ExtendedAgent) (*Client, error)

func (*Client) ForwardTCP

func (c *Client) ForwardTCP(ctx context.Context, localTCPAddr *net.TCPAddr, remoteTCPAddr *net.TCPAddr) (*net.TCPAddr, error)

func (*Client) ForwardUDP

func (c *Client) ForwardUDP(ctx context.Context, localUDPAddr *net.UDPAddr, remoteUDPAddr *net.UDPAddr, multconn *net.UDPConn) (*net.UDPAddr, *net.UDPConn, error)

func (*Client) ReverseTCP

func (c *Client) ReverseTCP(ctx context.Context, localTCPAddr *net.TCPAddr, remoteTCPAddr *net.TCPAddr) (*net.TCPAddr, error)

func (*Client) ReverseUDP

func (c *Client) ReverseUDP(ctx context.Context, localUDPAddr *net.UDPAddr, remoteUDPAddr *net.UDPAddr) (*net.UDPAddr, error)

func (*Client) RunSession

func (c *Client) RunSession(tty *os.File, forwardSSHAgent bool, forcePTYAlloc bool, command ...string) error

type ExitSignal

type ExitSignal struct {
	Signal           string
	ErrorMessageUTF8 string
}

func (ExitSignal) Error

func (e ExitSignal) Error() string

type ExitStatus

type ExitStatus struct {
	StatusCode int
}

func (ExitStatus) Error

func (e ExitStatus) Error() string

type NoSuitableIdentity

type NoSuitableIdentity struct{}

func (NoSuitableIdentity) Error

func (e NoSuitableIdentity) Error() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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