我试过关注 this guide关于生成 ssh key 以使用 gitlab。
在我知道是否应该生成 key 之前,我必须检查是否已经存在这样的 key :
type %userprofile%\.ssh\id_rsa.pub
如果它这样说,那么我必须生成 key :
the system cannot find the path specified
你下一步怎么做?因为如果这是我收到的信息,指南没有说什么。
编辑:我试过了
ssh-keygen -t rsa -C "email@example.com"
我得到
'ssh-keygen' is not recognized as an internal or external command,
operable program or batch file.
编辑2:我在 window 上。
最佳答案
如果你安装了 git for windows,在 windows 上运行 git-gui
.然后单击帮助,然后单击显示 Ssh key ,然后单击生成 key 。
当您使用它时,然后复制到剪贴板,然后转到您的 Gitlab 帐户页面并将 SSH key 添加到您的 Gitlab 帐户的 ssh 设置中。
关于ssh - 从 windows 生成 gitlab ssh key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41148750/