ssh

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 8 Imported by: ? 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

Overview

Package ssh implements SSH transport using golang.org/x/crypto/ssh.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Address       string
	ClientConfig  *xssh.ClientConfig
	TerminalModes xssh.TerminalModes
	DialContext   DialContextFunc
}

Config configures an SSH endpoint.

type Connector

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

Connector establishes authenticated SSH connections.

func NewConnector

func NewConnector(config Config) (*Connector, error)

NewConnector creates an SSH connector. Host-key verification must be configured explicitly through ClientConfig.HostKeyCallback.

func (*Connector) Connect

func (c *Connector) Connect(ctx context.Context) (tuicast.SessionOpener, error)

Connect establishes and authenticates one multiplexed SSH connection.

type DialContextFunc

type DialContextFunc func(context.Context, string, string) (net.Conn, error)

DialContextFunc establishes the TCP connection used by SSH.

Jump to

Keyboard shortcuts

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