通过git的Andr​​oid的工作室用ssh-关键 [英] ssh-key used by git Android Studio

查看:120
本文介绍了通过git的Andr​​oid的工作室用ssh-关键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要连接到一个组织,因此需要提供公共SSH密钥。不过,我不能确定它的SSH密钥是由Android工作室使用。
我发现自己困惑,因为在Android Studio中的各种SSH的选项。

这仅仅使用由我当前的git安装所产生的唯一一个?

图片添加作说明。这些文件似乎对应,并安装GitHub的窗口的客户端的经创建,但根据GitHub的本身,从未被使用。

本地SSH-文件

在github

SSH文件

恩。 /users/$name/.ssh/github_rsa.pub


解决方案

<一个href=\"http://stackoverflow.com/questions/6419934/how-many-github-ssh-keys-do-i-need-for-a-small-dev-team\">A设备具有与GitHub的认证只有一个SSH密钥。

因此​​,在这种情况下,我需要使用由我的GitHub的客户端,其中authed用git从该客户端的所有其他程序所产生的密钥。

I need to connect to an organization, and therefore need to provide a public ssh-key. However, I am unsure which ssh-key is in use by Android Studio. I find myself confused because of the various ssh-options in Android Studio.

Does it simply use the only one generated by my current git-installation?

Pictures added for illustration. These files seem to correspond, and were created upon installation of the GitHub windows-client, but according to GitHub itself, has never been utilized.

Local ssh-file

ssh-file on github

ex. /users/$name/.ssh/github_rsa.pub

解决方案

A device has only one ssh-key for authenticating with GitHub.

So in this case, I needed to use the key generated by my GitHub-client, which authed all other programs using git from this client.

这篇关于通过git的Andr​​oid的工作室用ssh-关键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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