【发布时间】:2017-04-30 03:30:33
【问题描述】:
我已尝试关注this guide 生成 ssh 密钥以使用 gitlab。
在我知道是否应该生成密钥之前,我必须检查是否已经存在这样的密钥:
type %userprofile%\.ssh\id_rsa.pub
如果它这么说,那么我必须生成密钥:
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:我在 Windows 上。
【问题讨论】:
-
试试这个
ssh-keygen -t rsa -C "email@example.com" -
@sajibkhan 我为此命令添加了编辑
-
从 OP 命令中的路径和来自 shell 的错误消息来看,我打赌 OP 在 Windows 上。
ssh-keygen通常是一个 *nix 工具。 -
确保您已经安装了
git。那就试试ssh-keygen ... -
ssh-keygen不是git的一部分。