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

0 votes
Answer 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 votes

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 Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

274 views 0 12
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