Mateusz Karwat
Mateusz Karwat

Reputation: 102

Git configuration - still ask username and password

I'm trying to set pu my git, but I have a little problem with that.

I use Mac OS X Lion and when I go to:

~/.ssh/

I can see 2 files: id_rsa and id_rsa.pub. I want to generate new SSH key to log in to bitbucket.org for example or github.com. I do:

rm ~/.ssh/*
ssh-keygen -t rsa -C "[email protected]"

Then I'm not sure, but I write my mail passphrase, my bitbucket password... everything and I have still this same problem. When I use:

git clone https://...
git pull

or something like that it still wants my username and password. Of course I paste new id_rsa.pub key to SSH keys on the website (bitbucket and github). Any idea what I am doing wrong?

Upvotes: 2

Views: 1840

Answers (2)

Mark Longair
Mark Longair

Reputation: 468211

You're cloning over HTTPS, which doesn't have anything to do with your SSH keys. Either try cloning using the SSH URL, or you can do passwordless login with HTTPS by the following:

Upvotes: 5

Michael Krelin - hacker
Michael Krelin - hacker

Reputation: 143319

You use https://, ssh keys are of little help there. Try ssh repository url.

Upvotes: 0

Related Questions