Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAllKeys ¶
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.
Click to show internal directories.
Click to hide internal directories.