Git和ssh授权 [英] Git and ssh authorizating

查看:195
本文介绍了Git和ssh授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法使用生成的ssh密钥登录到github。我按照这本手册: http://help.github.com/linux-key-setup ,但在步骤:

I can't login to github with generated ssh-keys. I've followed this manual: http://help.github.com/linux-key-setup but at step:


git@github.com

ssh git@github.com

我得到:

I get:


代理承认未能使用
签署密钥。 Permission denied
(publickey)。

Agent admitted failure to sign using the key. Permission denied (publickey).

什么?当然,我还添加了自己的用户电子邮件。

What's wroing? And, of course, I'm adding my own user email.

尝试过dsa-key,同样的事情。 / p>

Tried dsa-key, the same thing.

推荐答案

疑难解答指南


权限被拒绝(publickey)

Permission denied (publickey)

这通常是由于ssh不能
找到你的密钥造成的。确保您的密钥在默认位置〜/ .ssh中为
。如果
再次运行ssh-keygen,并且只需
,在所有3个提示符下按回车,它将
自动置于此处。然后,您
可以将id_rsa.pub的内容添加到
我的github密钥中。如果id_rsa.pub不
工作,请尝试id_dsa.pub。如果你只有一个rsa键,你可能需要
生成一个带有ssh-keygen
-t dsa的新dsa键。

This is usually caused when ssh cannot find your keys. Make sure your key is in the default location, ~/.ssh. If you run ssh-keygen again and just press enter at all 3 prompts it will be placed here automatically. Then you can add the contents of id_rsa.pub to my github keys. If id_rsa.pub doesn’t work try id_dsa.pub. You might need to generate a new dsa key with ssh-keygen -t dsa if you just have an rsa key.

如果你是仍然有问题和
以上都没有工作,你可能有一个debian
open-ssh bug的
a黑名单密钥。您应该更新
open-ssh并重新生成您的密钥。

If you are still having problems and none of the above worked, you may have a blacklisted key from a debian open-ssh bug. you should update open-ssh and re-generate your keys.

所以,只需检查 - 您的密钥是否可用在〜/ .ssh / id_rsa和id_rsa.pub下或其他地方,你是否指定了它们的用途?

So, just to check - are your keys available under ~/.ssh/ as id_rsa and id_rsa.pub or otherwise, are you specifying their use?

这篇关于Git和ssh授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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