diff --git a/models/ssh_key.go b/models/ssh_key.go index bb75b656c..c4a6df89a 100644 --- a/models/ssh_key.go +++ b/models/ssh_key.go @@ -223,11 +223,6 @@ func writeTmpKeyFile(content string) (string, error) { // SSHKeyGenParsePublicKey extracts key type and length using ssh-keygen. func SSHKeyGenParsePublicKey(key string) (string, int, error) { - // The ssh-keygen in Windows does not print key type, so no need go further. - if setting.IsWindows { - return "", 0, nil - } - tmpName, err := writeTmpKeyFile(key) if err != nil { return "", 0, fmt.Errorf("writeTmpKeyFile: %v", err)