sshconfig

package
v1.54.0 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2022 License: 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