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

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.

0 vote

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,628 views 26 12
Join discussion

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