It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

SSH key authentication password prompting

I have SSH key generated on Windows 10. On our git server, we applied public key for SSH key authentication. Source tree is connected on git server, but on pushing to server is promtping for password.

$ git push origin branch
git@OURGITREPO's password:
fatal: Could not read from remote repository.

 

How to dissable password, or whats password?

1 answer

0 votes
Mike Corsaro Atlassian Team Jan 31, 2018

Hello! It sounds like the URL for the remote is configured for HTTPS rather than SSH. Could you check the URL of the repo for me?

  • Open the repo
  • Click "Settings"
  • Double-click on the first item in the "Remote repository paths" list
  • Check the URL / Path

 

If the URL / Path matches the SSH pattern, then could you run the following command for me?

  • Open the repo
  • Click "Terminal"
  • Type: git remote -v
  • Check the output and see what pattern it has

 

Thanks!

The url is right.

git remote -v

origin  git@[IPADDRESS]:/data/code/hej.git (fetch)
origin  git@[IPADDRESS]:/data/code/hej.git (push)

The url is right, becase with gui functions, it is possible to make all actions (push, fetch .... )

By opened Terminal, it is not possible

Mike Corsaro Atlassian Team Feb 02, 2018

So if I understand correctly, pushing works in Sourcetree but not via command line?

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,917 views 0 12
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you