使用 Aptana Studio 导入 git 项目但权限被拒绝(公钥) [英] Using Aptana Studio to import git project but Permission denied (publickey)

查看:31
本文介绍了使用 Aptana Studio 导入 git 项目但权限被拒绝(公钥)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将 github 存储库中的现有项目导入 aptana studio,但错误提示 Permission denied (publickey).致命:远端意外挂断

I tried to import an existing project from the github repository into aptana studio but an error says Permission denied (publickey). fatal: The remote end hung up unexpectedly

我确保将我的 ssh 添加到我在 github 中的帐户.我也跑了 $ssh -vT gitt@github.com这就是说找不到私钥.

I made sure to add my ssh to my account in github. I also ran $ssh -vT gitt@github.com and this is what it says that the private key cannot be found.

在其他 Windows 7 机器上,我在导入 Git 项目时从未遇到过问题,但在我的家用 PC 上却无法运行.

On other windows 7 machine I never had a problem importing a Git project but on my home PC I can't get it to work.

推荐答案

显然这与正确的 ssh 有关 - 使用 aptana 设置的密钥.有两种可能1) 如果您已经安装了 github for Windows 应用程序,那么您已经拥有了一个密钥对.它也将已经在 Github 注册.登录 github 后,您可以在 https://github.com/settings/ssh 下找到这些内容.现在你需要解释 aptana 为那个打开的 Aptana 使用正确的私钥和

Apparently this has to do with the proper ssh - keys to be set with aptana. There are two possibilities 1) If you've installed the github for Windows application than you already have a key-pair. It will also be already registered with Github. You can find these under https://github.com/settings/ssh once you've logged on to github. Now you need to explain aptana to use the proper private key for that open Aptana and

  1. 转到窗口/首选项 -> 常规/网络连接/SSH2
  2. 点击 Add Private Key... 并选择 github_rsa 文件,而不是 pub文件,我们想告诉 aptana 你的私钥是什么.

现在aptana将使用正确的密钥连接到github

Now aptana will use the proper key to connect to github

这篇关于使用 Aptana Studio 导入 git 项目但权限被拒绝(公钥)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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