sshagent

package
v0.1.1 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: 9 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.

Jump to

Keyboard shortcuts

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