ssh

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateClientConfig

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

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(x *[]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