|
|
@ -219,7 +219,7 @@ func SSHKeyGenParsePublicKey(key string) (string, int, error) { |
|
|
|
func SSHNativeParsePublicKey(keyLine string) (string, int, error) { |
|
|
|
func SSHNativeParsePublicKey(keyLine string) (string, int, error) { |
|
|
|
fields := strings.Fields(keyLine) |
|
|
|
fields := strings.Fields(keyLine) |
|
|
|
if len(fields) < 2 { |
|
|
|
if len(fields) < 2 { |
|
|
|
return "", 0, fmt.Errorf("not enough fields in public key line: %s", string(keyLine)) |
|
|
|
return "", 0, fmt.Errorf("not enough fields in public key line: %s", keyLine) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
raw, err := base64.StdEncoding.DecodeString(fields[1]) |
|
|
|
raw, err := base64.StdEncoding.DecodeString(fields[1]) |
|
|
|