简体   繁体   中英

ssh-key used by git Android Studio

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

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

设置AS以使用本机

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM