Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
If a user has added an sshkey to ssh-agent, we should use it. See this bug:
There is ssh-agent support in libgit2. It will be implemented.
Fixed in libgit2.
To verify this issue, I have tried to reproduce it and unable to reproduce it.
Could you please provide us some steps? so that we can reproduce it at our end.
This should be only tested on Mac.
Testing this is as follows:
1. Generate a ssh key with ssh-keygen and add it on github (https://help.github.com/articles/generating-ssh-keys/)
2. Add the key to ssh-agent (See the mac guide at the bottom of this link: https://developer.github.com/guides/using-ssh-agent-forwarding/)
3. Move the id_rsa.pub and id_rsa files out of ~/.ssh. In a terminal, you can type: mv ~/.ssh/id_rsa* ~/
4. Try checking out a repository using the SSH url to checkout and see that there was no request for a ssh key and it checked out successfully.
I have checked this issue as per comment #4 and I am successfully able to generate a SSH keys.
But I am sure how to generate SSH url as steps 4 in comment #4. Could you please tell me how to generate a SSH url?
Please follow the screencast: http://www.screencast.com/t/gneYJECrI , and let me know if I have missed anything.
You do not have to append the ssh://. Do not touch the dropdown. Just paste in the URL you pasted.
If I don't select the ssh, I am getting a Authenticating error
Screencast for the same: http://www.screencast.com/t/nHDvg632RBKe
Are you sure you've followed step #2 from comment #4? It works for me locally.
I have recheck this issue as per comment #4 and observed that I am successfully able to follow steps 1 but step 2 I am getting issue with command $ ssh -v example.com. I ma using $ ssh -v github.com and its throw :
debug1: No more authentication methods to try.
Permission denied (publickey).
Please follow the github and screencast and let me know if I have missed anything.
Terminal command: https://gist.github.com/Parmendrak/3598b00ef4cd247058fb
1. Make sure you've set up everything with:
$ ssh-add ~/.ssh/id_rsa
$ pbcopy < ~/.ssh/id_rsa.pub
2. Set up the ssh key on github.com
3. Then try out ssh -v email@example.com
4. Attempt to clone a repository with XS.
Okay so, the screencast I'm showing is as follows:
I'm using a ssh key added in the agent. Then I'm attempting to clone an URL using a ssh connection and showing that through code stepping, it's going through the ssh agent code.
Can mark this as resolved fixed?
I have checked this issue as per you instruction provided me in comment #10, and here are my observation
1. I am successfully able to create a clone on my computer with command (git clone firstname.lastname@example.org:Parmendrak/Parmendra5.git)
2. If I open the cloned project on XS and commit the changes it asked for SSH Key
3. If I checkout in XS (version control->checkout) it asked for SSH key
Terminal Command gist: https://gist.github.com/Parmendrak/4151c72a8cf0c9d681f7
Please let me know if I have missed anything.
Yeah, moving the ssh key wasn't supposed to be in that list of commands. I was thinking of another test case, my mistake.
Basically, do not execute mv ~/.ssh/id_rsa ~/
I have used the command as per you provided me in comment #13
ShrutiMac:~ 360_macmini$ mv ~/.ssh/id_rsa ~/
mv: /Users/360_macmini/.ssh/id_rsa: No such file or directory
After run the above command I am able to see the "id_rsa" and "id_rsa_pub" file on 360_macmini folder.
Could you please tell me should I remove these file?
You need to move them back. Do not run that command. Repeat all the steps:
ssh-keygen, ssh-add, add the ssh key on github and clone the repo.
I verified it and it works
Permendra, here is how I did (for future reference)
I checked that ssh-agent had my key and then I moved the key store directory
$ ssh-add -l
4096 dd:62:ca:0b:62:35:eb:50:62:fe:51:19:0f:33:9d:3e /Users/manish/.ssh/id_rsa (RSA)
$ mv ~/.ssh/ ~/.ssh2/
then I got the XS build with libgit2 and then checkedout any repo with ssh protocol
It worked since ssh-agent already had the key it needed.