sshagent

package
Version: v0.0.0-...-b817d9f Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2015 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Helpers for interacting with the local SSH Agent

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(ui ui.Ui, privateKeyPath string) error

Add takes the path of a private key and runs ssh-add locally to add it to the agent. It needs a Ui to be able to interact with the user for the password prompt.

func HasKey

func HasKey(publicKey string) (bool, error)

HasKey determines if a given public key (provided as a string with the contents of a public key file), is loaded into the local SSH Agent.

func ListKeys

func ListKeys() ([]*agent.Key, error)

ListKeys connects to the local SSH Agent and lists all the public keys loaded into it. It returns user friendly error message when it has trouble.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL