sshx

package
v0.0.0-...-155e729 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseAllKeys

func ParseAllKeys(in []byte) (keys []ssh.PublicKey)

ParseAllKeys parses all keys in authorized_keys format.

Parsing stops if the input is exhausted, or when an equivalent ParseKeys call would return an error. This function exists for convenience; use ParseKeys for more fine-grained control.

func ParseKeys

func ParseKeys(in []byte, limit int) (keys []ssh.PublicKey, comments []string, options [][]string, rest []byte, err error)

ParseKeys repeatedly parses a PublicKey in authorized_keys format from in. At most limit keys are parsed, where limit < 0 indicates an unlimited number of keys to be parsed.

If parsing fails, all previously parsed keys, comments and options are returned along with a non-nil error. If there are fewer keys than limit, an error is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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