ssh

package
v1.10.1 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package ssh provides SSH client functionality for network device connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClientConfig

func GenerateClientConfig(username string, password string, hostKeyPath string, hostname string) (*ssh.ClientConfig, error)

GenerateClientConfig returns client config.

Types

type SSH

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

SSH struct.

func New

func New(host string, port int, protocol string, timeout time.Duration) *SSH

New returns SSH struct.

func (*SSH) Fetch

func (c *SSH) Fetch(batchers *[]x.Batcher, config *ssh.ClientConfig) (string, error)

Fetch starts the expect process.

Jump to

Keyboard shortcuts

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