fail to push git with credential

Asked by A117

My current code is using bazaar here and I would like to change it to git.
I successfully pushed to bazaar, so my ssh key is already correctly set.
Since it has a recipe, I did not remove the current branch but only changed code host method to git.
When I push git, it says my public key does not match.

Question information

Language:
English Edit question
Status:
Solved
For:
Launchpad itself Edit question
Assignee:
No assignee Edit question
Solved by:
A117
Solved:
Last query:
Last reply:
Revision history for this message
Colin Watson (cjwatson) said :
#1

Perhaps your local user name does not match your Launchpad user name, and you haven't configured the latter in quite the right place. Would that be an accurate guess? Do you have a block for bazaar.launchpad.net in ~/.ssh/config, perhaps? If so, you could copy it to a similar block for git.launchpad.net.

Revision history for this message
A117 (bon-ami) said :
#2

I do not have ~/.ssh/config.
My local user name, git user name and Launchpad user name are all different. Do I have to make them same?

Revision history for this message
A117 (bon-ami) said :
#3

It complains as below,
Launchpad user XXX doesn't have a registered SSH key.
XXX is my local user name, while YYY is my Launchpad user name. There is no reason I have to make them same.

Revision history for this message
A117 (bon-ami) said :
#4

I uploaded to git+ssh://YYY@... instead of git+ssh://... and it is solved.
It would be great if launchpad can mention this code page.