【发布时间】:2020-02-19 13:41:23
【问题描述】:
在下面的代码中
############-L1 MINGW64 ~
$ which git
/mingw64/bin/git
############-L1 MINGW64 ~
$ git --version
git version 2.22.0.windows.1
############-L1 MINGW64 ~
$ which git -v
GNU which v2.21, Copyright (C) 1999 - 2015 Carlo Wood.
GNU which comes with ABSOLUTELY NO WARRANTY;
This program is free software; your freedom to use, change
and distribute this program is protected by the GPL.
############-L1 MINGW64 ~
$ ssh-keygen -t rsa
############-L1 MINGW64 ~
$
在 Git Bash v2.22 中运行。我无法使用上面的 ssh-keygen 命令创建 SSH 密钥。我已确保使用 Git 的凭据管理器清除了凭据。安装完成后,我确保重新启动计算机。有什么建议可以让我完成这项工作吗?
我需要这个,以便我可以从我的 GitLab 帐户中的本地存储库中克隆一些东西,并执行其他需要 SSH 密钥的功能。
【问题讨论】:
-
你的 '~/.ssh` 目录的内容是什么?
标签: git ssh gitlab git-bash ssh-keygen