sshconfig

package
v1.35.1 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: Apache-2.0, Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package sshconfig implements a small ssh config parser based on the output of `ssh -G`.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context, host, field string) (string, error)

Get returns the value of a key in the ssh config for a given host. An error is only returned when a key is not found. Note: a field will usually have default values returned, e.g. IdentityFile.

Types

This section is empty.

Jump to

Keyboard shortcuts

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