Discover Packages
github.com/hashicorp/otto
helper
sshagent
package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jan 6, 2016
License: MPL-2.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 16
Opens a new window with list of known importers.
Documentation
Documentation
¶
Helpers for interacting with the local SSH Agent
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.
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.
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.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.