ssh

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Key

type Key struct {
	*rsa.PrivateKey
	// contains filtered or unexported fields
}

Key wrapper rsa key

func GenerateKey

func GenerateKey(size int, privateKeyName string, publicKeyName string) (*Key, error)

GenerateKey returns new Key instance TODO: pass phrease

func (*Key) Save

func (k *Key) Save(dir string) error

Save private and public keys to directory

Jump to

Keyboard shortcuts

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