1

I recently installed and configured a Stash server.

I can login on the webinterface but then I supply the same username and password when for example doing a git clone it says :

fatal: Authentication failed for '...'

How is this possible?

SQB
  • 3,926
  • 2
  • 28
  • 49
Brovoker
  • 896
  • 5
  • 16

1 Answers1

0

What you should do is clone using a ssh key.

You can add a public ssh key in your user settings, in stash.

Then, you can clone using the ssh:// URL that will show when you're trying you clone, and you won't have to type a password ever again.

This is safer, and easier.

blue112
  • 52,634
  • 3
  • 45
  • 54
  • Yeah, but you didn't provide enough information to pinpoint the problem, so I'm suggesting a workaround :) – blue112 Mar 26 '15 at 08:31
  • So I found out it's something to do with the Apache webserver in front of it. We run stash on port 7990. We have an Apache webserver that forwards incoming requests on port 80 to the ip of stash server on port 7990. This works when accessing the stash webinterface but when connecting through git command line it does not work with authenticating. (Cloning non authenticated repositories work). Authentication succeeds when changing the git clone link to ip:7990. – Brovoker Mar 26 '15 at 08:56