testsshagent

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SSHAdd

func SSHAdd(dir, sockname string, args ...string) (string, error)

SSHAdd runs ssh-add in the specified directory to connect to the agent sockname to add the specified keys.

func StartPreconfiguredAgent

func StartPreconfiguredAgent(keydir string, keys ...string) (func(), string, error)

StartPreconfiguredAgent starts an ssh agent and preconfigures it with the supplied keys. It returns a cleanup function, the socket name for the agent, the directory that the keys are created in and an error.

func StartSSHAgent

func StartSSHAgent() (func(), string, error)

StartSSHAgent starts an ssh agent and returns a cleanup function and the socket name to use for connecting to the agent.

Types

This section is empty.

Jump to

Keyboard shortcuts

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