fssh

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package fssh provides functions and methods to configure and create SSH connections.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConfig

func NewClientConfig(fs afero.Fs, user string, privateKeyPath string) (*ssh.ClientConfig, error)

NewClientConfig returns a client config that can only connect to a loopback address.

Types

type Dialer

type Dialer interface {
	Dial(network string, addr string, config *ssh.ClientConfig) (*ssh.Client, error)
}

Dialer abstracts out ssh.Dial to facilitate unit testing.

func NewDialer

func NewDialer() Dialer

NewDialer returns a Dialer that calls ssh.Dial under the hood.

Jump to

Keyboard shortcuts

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