func ParseAuthorisedKey(line string) (*AuthorisedKey, error) {
	key, comment, _, _, err := ssh.ParseAuthorizedKey([]byte(line))
	if err != nil {
		return nil, errors.Errorf("invalid authorized_key %q", line)
	}
	return &AuthorisedKey{
		Type:    key.Type(),
		Key:     key.Marshal(),
		Comment: comment,
	}, nil
}
// ParseAuthorisedKey parses a non-comment line from an
// authorized_keys file and returns the constituent parts.
// Based on description in "man sshd".
ParseAuthorisedKey parses a non-comment line from an
authorized_keys file and returns the constituent parts.
Based on description in "man sshd".
// ParseAuthorisedKey parses a non - comment line from an // authorized_keys file and returns the constituent parts . // Based on description in " man sshd " .
func ParseAuthorisedKey(line string) (*AuthorisedKey, error) {
	key, comment, _, _, err := ssh.ParseAuthorizedKey([]byte(line))
	if err != nil {
		return nil, errors.Errorf("invalid authorized_key %q", line)
	}
	return &AuthorisedKey{
		Type:    key.Type(),
		Key:     key.Marshal(),
		Comment: comment,
	}, nil
}
func ParseAuthorisedKey ( line string ) ( * AuthorisedKey , error ) { key , comment , _ , _ , err := ssh . ParseAuthorizedKey ( [ ] byte ( line ) ) if err != nil { return nil , errors . Errorf ( " " , line ) } return & AuthorisedKey { Type : key . Type ( ) , Key : key . Marshal ( ) , Comment : comment , } , nil }
ParseAuthorisedKey parses a non-comment line from an
authorized_keys file and returns the constituent parts.
ParseAuthorisedKey parses a non - comment line from an authorized_keys file and returns the constituent parts .