Documentation
¶
Index ¶
- func ListenUDPReuse(ctx context.Context, network string, laddr *net.UDPAddr) (*net.UDPConn, error)
- func ListenUDPWithAutoMulticast(udpAddr *net.UDPAddr, ifaceName string, conn *net.UDPConn) (*net.UDPConn, error)
- type Client
- func (c *Client) ForwardTCP(ctx context.Context, localTCPAddr *net.TCPAddr, remoteTCPAddr *net.TCPAddr) (*net.TCPAddr, error)
- func (c *Client) ForwardUDP(ctx context.Context, localUDPAddr *net.UDPAddr, remoteUDPAddr *net.UDPAddr, ...) (*net.UDPAddr, *net.UDPConn, error)
- func (c *Client) ReverseTCP(ctx context.Context, localTCPAddr *net.TCPAddr, remoteTCPAddr *net.TCPAddr) (*net.TCPAddr, error)
- func (c *Client) ReverseUDP(ctx context.Context, localUDPAddr *net.UDPAddr, remoteUDPAddr *net.UDPAddr) (*net.UDPAddr, error)
- func (c *Client) RunSession(tty *os.File, forwardSSHAgent bool, forcePTYAlloc bool, command ...string) error
- type ExitSignal
- type ExitStatus
- type NoSuitableIdentity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenUDPReuse ¶
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 (*Client) ForwardUDP ¶
func (*Client) ReverseTCP ¶
func (*Client) ReverseUDP ¶
type ExitSignal ¶
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
Click to show internal directories.
Click to hide internal directories.