无法在Windows 7中为heroku生成ssh公钥 [英] Could not generate ssh public key for heroku in Windows 7

查看:92
本文介绍了无法在Windows 7中为heroku生成ssh公钥的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在我的计算机中通过cmd尝试 heroku login 时,它说

While I am trying heroku login through cmd in my machine, it says


无法找到现有的公钥

您想要生成一个公钥吗? [YN]

Could not find existing public key
Would you like to generate one? [YN]

然后当我按'y'并输入时说

After that when I press 'y' and enter it says


生成新的ssh公共密钥

无法生成密钥:ssh-keygen未被识别为内部或外部命令可操作程序或批处理文件

Generating new ssh public key
Could not generate key: "ssh-keygen" is not recognized as a internal or external command operable program or batch file

请帮助我。

推荐答案

Heroku toolbelt包括包含所需的ssh-keygen.exe的git分发。我刚刚在C:\\ Program Files \git\bin中找到它。找到您的git文件夹并将其添加到您的系统路径中,如下所述: superuser.com/questions/284342/

Heroku toolbelt includes git distribution which includes the required ssh-keygen.exe . I've just found it in C:\Program Files\git\bin . Locate your git folder and add it to your system path as described here: superuser.com/questions/284342/

这篇关于无法在Windows 7中为heroku生成ssh公钥的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆