Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

ssh -T works fine but push requires password

Eevee October 23, 2018

When i'm trying to push my changes, git requires me to input password, despite that ssh-agent is started, ssh key file added and ssh -T git@bitbucket.org comand works fine.

1 answer

1 accepted

1 vote
Answer accepted
Mikael Sandberg
Community Champion
October 23, 2018

Hi Evee,

Welcome to the Atalssian Community.

When you created your SSH key, did you enter a passphrase? If you did then that is what Bitbucket/Git is asking for.

Eevee October 23, 2018

No. I left this field empty.

Eevee October 23, 2018

Screenshot_2.png

Mikael Sandberg
Community Champion
October 23, 2018

Is your remote URL set to use ssh instead of https?

Eevee October 23, 2018

I don't know. How can I check and/or configure this?

Mikael Sandberg
Community Champion
October 23, 2018

Run git remote -v and it will list the URL. It should looks something like this if you are using ssh:

ssh://git@bitbucket.org:<username>/my-repo.git

Mikael Sandberg
Community Champion
October 23, 2018

To change the URL, use this command:

git remote set-url origin git@bitbucket.org:<username>/my-repo.git

You can get the correct SSH URL if you click on Clone in Bitbucket. 

Like Roland Robe likes this
Eevee October 23, 2018

I figured out. I changed my origin sources to ssh from https with git remote set-url and now it works. Thank you.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events