ssh

package module
v0.0.0-...-44e4d93 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package ssh provides SSH client functionality using sshconf configurations

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func (*Client) Client

func (c *Client) Client() *ssh.Client

func (*Client) Close

func (c *Client) Close() error

func (*Client) Config

func (c *Client) Config() *sshconf.SSHOptions

func (*Client) Session

func (c *Client) Session() (*ssh.Session, error)

type Config

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

func NewConfigFromFile

func NewConfigFromFile(path string) (*Config, error)

func NewConfigFromString

func NewConfigFromString(s string) (*Config, error)

func (*Config) Dial

func (c *Config) Dial(host string) (*Client, error)

func (*Config) GetClientConfig

func (c *Config) GetClientConfig(host string) (*ssh.ClientConfig, error)

Jump to

Keyboard shortcuts

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