SGit icon indicating copy to clipboard operation
SGit copied to clipboard

How to clone a Github project by ssh

Open LaurentSouchet-Orange opened this issue 9 years ago • 5 comments

Hi, I've tried to clone a Github project by https : that's ok. I've treid to clone the same project by ssh : but I don't understand how to do. I've created a private key on JiGit and added the public key in SSH Keys of my Github account. But It's not OK. Is it possible to use with ssh protocol ? If yes do you have a todo list actions ? Thanks by advance, Laurent

LaurentSouchet-Orange avatar Dec 04 '15 12:12 LaurentSouchet-Orange

Which URL did you enter as clone URL? Which error did you get?

phcoder avatar Dec 04 '15 12:12 phcoder

@phcoder

for https : ok

  • https://github.com/LaurentSouchet-Orange/MarkdownPresentation.git

for ssh : not ok

LaurentSouchet-Orange avatar Dec 04 '15 12:12 LaurentSouchet-Orange

Please try ssh://[email protected]/LaurentSouchet-Orange/MarkdownPresentation.git as per README.md

phcoder avatar Dec 04 '15 12:12 phcoder

That fine. Sorry for my mistake. Regards, Laurent

LaurentSouchet-Orange avatar Dec 04 '15 12:12 LaurentSouchet-Orange

I think we should support the syntax github gives us in ssh clone link as desktop git does. This introduces no ambiguity as they're easy to distinguish whether ssh: is followed by // or not

phcoder avatar Dec 04 '15 12:12 phcoder