ssh

package
v0.0.0-...-954558f Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Addr              string   `yaml:"addr"`
	User              string   `yaml:"user"`
	Password          string   `yaml:"password,omitempty"`
	KeyFile           string   `yaml:"keyFile,omitempty"`
	ClientVersion     string   `yaml:"clientVersion,omitempty"`
	HostKeyAlgorithms []string `yaml:"hostKeyAlgorithms,omitempty"`
	Cmd               *string  `yaml:"cmd,omitempty"`
}

Config is a ssh config.

func (*Config) SSHClient

func (c *Config) SSHClient(ctx context.Context) (*ssh.Client, error)

SSHClient is used to create a SSH client.

Jump to

Keyboard shortcuts

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