Always asked to authenticate with password

Whenever I try to push or clone or do anything using Git, it seems that stash is always asking me for my password. When I use tools that don't expect a command prompt, they lock up (i.e. Git Extensions).

I expected that once I set up my public key with Stash, I could use that to push to the repository without a password.

1 answer

1 accepted

Hi Garabed.

The problem was that the <tt>Git Extensions</tt> wasn't able to add the <tt>Stash Host</tt> to the <tt>known_hosts</tt> file for some reason.

We had to set up a new <tt>Environment Variable</tt> on Windows with the following: <tt>GIT_SSH=<PATH_TO_PLINK_INSTALLATION></tt> and connect from the command line: <tt>"GIT_SSH" <STASH_HOST>:<SSH_PORT></tt> to get it work (msysgit was able to include the host in the file).

After that all started to work.

Also regarding to the authentication using HTTP/HTTPS we have a document that explains how to permanently authenticate with Git repositories so that you can avoid typing your username and password each time you are pushing to or pulling from Stash:

https://confluence.atlassian.com/display/STASH/Permanently+authenticating+with+Git+repositories

Cheers,
Douglas Fabretti
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
Published Thursday in Agile

How Davin Studer gets Confluence to do everything he wants it to do...except dishes

  @Davin Studer holds many interests, including but not limited to health tech and Star Trek. Read on to discover more about Davin, from his favorite Confluence macros to his favorite lit...

183 views 1 9
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