ssh-keygen'不被识别为内部或外部命令 [英] ssh-keygen' is not recognized as an internal or external command

查看:172
本文介绍了ssh-keygen'不被识别为内部或外部命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在github上添加ssh密钥以供使用,但是在命令提示符下的xp上ssh-keygen无法正常工作.它给了我以下错误

I am trying to add ssh keys for usage on github but on my xp on command prompt ssh-keygen does not work. It gives me the following error

ssh-keygen' is not recognized as an internal or external command.

是否有其他方法可以在xp上生成密钥?

Is there an alternative for generating keys on xp?

推荐答案

您是否正在运行 msysgit 或其他版本Windows git安装的形式? msysgit只是在Windows上运行git的一种可能方法,但它可能也是最简单的方法.也是git网站在 http://git-scm.org/推荐的方式.

Are you running msysgit, or some other form of Windows git installation? msysgit is only one possible way to run git on Windows but it's probably also the simplest one. It's also the way recommended by the git website at http://git-scm.org/ .

如果正在使用msysgit,则需要在Git Bash中运行命令,而不是在标准的Windows命令行提示符下运行命令. Git Bash是msysgit为您安装的提示,它基本上是Windows打包的最常见的Linux命令行外壳(bash),以方便git的命令行使用. msysgit还应该将ssh-keygen程序安装在可以从Git Bash进行访问的位置,而不必从通常的Windows命令行提示符处进行访问.

If you are using msysgit, then you need to run the command in Git Bash, not in a standard Windows command line prompt. Git Bash is a prompt that is installed for you by msysgit, and is basically the most common Linux command line shell (bash) packaged for Windows to facilitate command line usage of git. msysgit should also install the ssh-keygen program in a place where it is accessible from Git Bash, but not necessarily from your usual Windows command line prompt.

这篇关于ssh-keygen'不被识别为内部或外部命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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