EGit - SSH在密码短消息(连接到GitHub时) [英] EGit - SSH Fails at Passphrase (when connecting to GitHub)

查看:104
本文介绍了EGit - SSH在密码短消息(连接到GitHub时)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用带有EGit(捆绑)的Eclipse Indigo RC4。我有一个项目,我已经承诺到我的本地存储库,现在我想推送到我在GitHub的远程存储库。

I am using Eclipse Indigo RC4 with EGit (bundled). I have a project which I have committed to my local repository, and now I want to push from that to a remote repository I have in GitHub.

从命令行工具推/拉可正常工作(我已配置基于RSA密钥的SSH身份验证)。

Pushing / Pulling from the command line tools works fine (I have configured RSA key based SSH authentication).

但是当我尝试从EGit(通过SSH指向GitHub)时,我得到一个提示输入我的密码。但是当我输入正确的密码时,它会再次提示相同(注意:用户名显示为git,因为这是使用GitHub时的默认值,我猜这不会是一个问题)。

But when I try to push from EGit (via SSH pointed to GitHub), I get a prompt to enter my pass phrase. But when I enter the correct pass phrase, it prompts again for the same (note: username appears as git because that's the default when using GitHub. I guess that wouldn't be a issue).

在Eclipse首选项下,我经过双重检查,以确保它被配置为使用我生成的RSA令牌。

Under Eclipse preferences, I have double checked to ensure that it is configured to use the RSA tokens I have generated.

推荐答案

通过以下链接将其整理出来: http:// www .clipse.org / forums / index.php / t / 197428 /

Got it sorted out by following this link http://www.eclipse.org/forums/index.php/t/197428/.

我创建了一个环境变量 GIT_SSH 它指向 / usr / bin / ssh (这是我在命令行中使用的SSH实现),并启动了Eclipse。当这个环境变量存在时,Eclipse使用我的shell的SSH工具进行连接,并没有通过短语的提示,它的工作正常。

I created an environment variable GIT_SSH which points to /usr/bin/ssh (which was the SSH implementation I was using in command line) and started Eclipse. When this environment variable was present, Eclipse connected using my shell's SSH tool and there was no prompt for pass phrase and it worked fine.

这篇关于EGit - SSH在密码短消息(连接到GitHub时)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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