auth

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePasswordCallback

func CreatePasswordCallback(masterPassword string) func(ssh.ConnMetadata, []byte) (*ssh.Permissions, error)

CreatePasswordCallback creates a function for authenticating via password

func GeneratePassword

func GeneratePassword(len int) (string, error)

GeneratePassword creates a random passoword with len bytes of data

func GetFingerPrint

func GetFingerPrint(signer ssh.Signer) (string, string)

GetFingerPrint takes returns the keys MD5 fingerprint of the signer

func TryLoadKeys

func TryLoadKeys(keyPath string) (ssh.Signer, error)

TryLoadKeys tries to load keys from keyPath. If no key exists generate it and save it

Types

This section is empty.

Jump to

Keyboard shortcuts

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