ssh-key used by git Android Studio

蓝咒 提交于 2019-12-10 17:08:09

问题


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


回答1:


For Mac users having trouble with ssh keys, I had to switch Android Studio to my "Native" SSH executable. Then it worked. See screenshot.




回答2:


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.



来源:https://stackoverflow.com/questions/27991311/ssh-key-used-by-git-android-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!