Versions in this module Expand all Collapse all v11 v11.3.4 Dec 14, 2022 v11.3.3 Dec 13, 2022 Changes in this version + const TracingChannel + const TracingRequest + func ContextFromNewChannel(nch ssh.NewChannel, opts ...tracing.Option) (context.Context, ssh.NewChannel) + func ContextFromRequest(req *ssh.Request, opts ...tracing.Option) context.Context + func NewClientConn(ctx context.Context, conn net.Conn, addr string, config *ssh.ClientConfig, ...) (ssh.Conn, <-chan ssh.NewChannel, <-chan *ssh.Request, error) + type Channel struct + func NewTraceChannel(ch ssh.Channel, opts ...tracing.Option) *Channel + func (c *Channel) SendRequest(ctx context.Context, name string, wantReply bool, payload []byte) (bool, error) + type Client struct + func Dial(ctx context.Context, network, addr string, config *ssh.ClientConfig, ...) (*Client, error) + func NewClient(c ssh.Conn, chans <-chan ssh.NewChannel, reqs <-chan *ssh.Request, ...) *Client + func NewClientConnWithDeadline(ctx context.Context, conn net.Conn, addr string, config *ssh.ClientConfig, ...) (*Client, error) + func (c *Client) DialContext(ctx context.Context, n, addr string) (net.Conn, error) + func (c *Client) NewSession(ctx context.Context) (*Session, error) + func (c *Client) OpenChannel(ctx context.Context, name string, data []byte) (*Channel, <-chan *ssh.Request, error) + func (c *Client) SendRequest(ctx context.Context, name string, wantReply bool, payload []byte) (bool, []byte, error) + type Envelope struct + Payload []byte + PropagationContext tracing.PropagationContext + type NewChannel struct + Envelope Envelope + func NewTraceNewChannel(nch ssh.NewChannel) *NewChannel + func (n NewChannel) ExtraData() []byte + type Session struct + func (s *Session) CombinedOutput(ctx context.Context, cmd string) ([]byte, error) + func (s *Session) Output(ctx context.Context, cmd string) ([]byte, error) + func (s *Session) RequestPty(ctx context.Context, term string, h, w int, termmodes ssh.TerminalModes) error + func (s *Session) RequestSubsystem(ctx context.Context, subsystem string) error + func (s *Session) Run(ctx context.Context, cmd string) error + func (s *Session) SendRequest(ctx context.Context, name string, wantReply bool, payload []byte) (bool, error) + func (s *Session) Setenv(ctx context.Context, name, value string) error + func (s *Session) Shell(ctx context.Context) error + func (s *Session) Signal(ctx context.Context, sig ssh.Signal) error + func (s *Session) Start(ctx context.Context, cmd string) error + func (s *Session) WindowChange(ctx context.Context, h, w int) error