ssh

package
v2.0.0-...-98537dd Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrKeyAlreadyExists = errors.New("SSH key already exists")

Functions

This section is empty.

Types

type Context

type Context struct {
	ConfigDir string
	KeygenExe string
}

func (*Context) GenerateSSHKey

func (c *Context) GenerateSSHKey(keyName string, passphrase string) (*KeyPair, error)

func (*Context) HasKeygen

func (c *Context) HasKeygen() bool

func (*Context) LocalPublicKeys

func (c *Context) LocalPublicKeys() ([]string, error)

type KeyPair

type KeyPair struct {
	PublicKeyPath  string
	PrivateKeyPath string
}

Jump to

Keyboard shortcuts

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