Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 232
NegatioN Avatar asked Nov 30 '22 00:11

NegatioN


2 Answers

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

Set AS to use native

like image 65
Dan Avatar answered Dec 21 '22 00:12

Dan


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.

like image 27
NegatioN Avatar answered Dec 20 '22 22:12

NegatioN