is the git username required for doing a clone via ssh?

on unix it seems the "git@" notation part of the git clone command isn't needed, but I'm hearing from other people on windows7 that they need to add this username part when doing clones via putty...

2 answers

1 accepted

This widget could not be displayed.

when using git (1.9.4.msysgit.2) on windows, and using plink (0.63) for ssh transport, then it's plink who needs a username, as opposed to openssh.

One way around this is to change the putty “Default Settings”:
• Connection > Data : “Use system username”
• Connection > SSH > Auth : “Private Key file for authentication” (if you don't want to use pageant)

Be sure to save this in Putty, and plink will use those defaults.

That make the git clone via plink work for me again without having to specify “git@” in the URL.

This widget could not be displayed.

Hi Robbin,

The validation is done through the access key. This has been answered by one of our developers on the question below:

See the example below:

$ git push ssh://userDoesntMatter@localhost:7999/test/repotest3.git
...
To ssh://userDoesntMatter@localhost:7999/test/repotest3.git
   4d15880..da015bb  master -> master

In order to enable SSH, please follow all the steps outlined in the document below:

I hope that it clarifies your question.

Best regards,
Thiago Bomfim
Atlassian Support

 

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,319 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you