ssh

package
v0.0.0-...-004cd70 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fatal

func Fatal(hostname string, err error) error

Fatal is a error output wrapper which aims to make SSH failures easier to parse through re-wording.

Types

type HostConfig

type HostConfig struct {
	Host         string
	IdentityFile string
	Port         string
	User         string
}

HostConfig is a SSH host config.

func GetHostConfig

func GetHostConfig(hostname string) (HostConfig, error)

GetHostConfig retrieves a ~/.ssh/config config for a host using /usr/bin/ssh directly. We therefore maintain consistent interop with this standard tooling. This is useful because SSH confuses a lot of people and having to learn how two tools (`ssh` and `abra`) handle SSH connection details instead of one (just `ssh`) is Not Cool. Here's to less bug reports on this topic!

func (HostConfig) String

func (h HostConfig) String() string

String presents a human friendly output for the HostConfig.

Jump to

Keyboard shortcuts

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