Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

SSH key authentication password prompting

MarcelGeo January 31, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
January 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!

MarcelGeo February 2, 2018

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
Atlassian Team members are employees working across the company in a wide variety of roles.
February 2, 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
AUG Leaders

Atlassian Community Events