ssh - 从 windows 生成 gitlab ssh key

标签 ssh cmd gitlab

我试过关注 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/

相关文章:

windows - 管理用户的 Schtasks 权限错误?

c - 通过 CMD 窗口和 C exe 写入文本文件?

Git merge 请求序列

ssh - 为什么 Google Cloud Compute Engine 实例在重启后拒绝 ssh 连接?

docker - 如何让我的 docker centos sshd 无密码服务器运行?

ssh - 如何使用受密码保护的 ssh 私钥运行 ansible-playbook?

windows - 在输出的第一行停止 FOR/F 命令(Windows 批处理)

laravel - 执行 Git 推送 Laravel 时不包含存储链接

组下所有项目的Gitlab API

python - 使用 Paramiko 通过另一台服务器连接到服务器