Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 482723

Summary: [Node server] Cloning repos with SSH protocols doesn't work
Product: [ECD] Orion Reporter: Simon Meng <mengzhixing0228>
Component: NodeAssignee: Silenio Quarti <Silenio_Quarti>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: P3 CC: ayl051, jiudechenxin, mengzhixing0228, pwebster, snorthov
Version: 10.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:
Bug Depends on:    
Bug Blocks: 474353    

Description Simon Meng CLA 2015-11-20 13:59:51 EST
When trying to clone the repo using SSH protocol, either "ssh://" or "git:" does not work. 

Error in the server console is:
POST git/clone: failure!
[Error: authentication required but no callback set]
Comment 1 Simon Meng CLA 2015-12-05 03:13:46 EST
This appears to be a problem with nodegit. Found a guide regarding how to use SSH clone with nodegit on its official website. Here is the link: http://www.nodegit.org/guides/cloning/ssh-with-agent/. But when I actually follow the guide and change the code in clone.js, SSH Clone is still not working properly. I think the problem may relate to more files and need further debugging.
Comment 2 Silenio Quarti CLA 2016-03-30 23:05:37 EDT
Cloning with SSH protocol works, but it requires recompiling nodegit from source because of https://github.com/nodegit/nodegit/pull/949.

Cloning with git: protocol does not work still
Comment 3 Silenio Quarti CLA 2016-06-23 12:12:55 EDT
Cloning with git protocol has been fixed by bug@495890.  We recompile the nodegit library with GIT_SSH_MEMORY_CREDENTIALS enabled.

Marking as fixed.