Pushing to a git+ssh repository asks for a password

Asked by Hemanth V. Alluri on 2019-05-15

On staging.launchpad.net, I am trying to push a new git repository as per the instructions provided during code configuration:

Push a new repository

You can add a remote for your Git repository with the command:

git remote add origin git+ssh://<email address hidden>/test1170

… and push the Git branch to Launchpad with:

git push origin master

However, when attempting to push the repo, I am prompted for a password. This makes no sense since I've already provided my ssh key during my account's configuration (both for the staging and non-staging ones). Further the password that's being requested here is not the same as my UbuntuOne password.

So my question here is what do I need to do to be able to create a git repository hosted in launchpad itself?

As a side note, I have not been able to mirror a git repository either. I have tried to use the https://github.com/Hypro999/test1170 and https://github.com/Hypro999/test1170.git as well as <email address hidden>:Hypro999/test1170.git and all of them generated an error code. here's the latest error code I received: Error ID: OOPS-09c6cafaa54ba3f45c0616f6b5a9b29a

Question information

English Edit question
Launchpad itself Edit question
No assignee Edit question
Solved by:
Colin Watson
Last query:
Last reply:
Best Colin Watson (cjwatson) said : #1

staging doesn't have a git backend (it's a bug that it offers you a URL for it). You can use qastaging.launchpad.net for testing this sort of thing instead, per the usual caveats about staging-type instances that they're purely for testing and the data might vanish at any time. If you need the repository to persist, then use launchpad.net instead.

The passphrase being asked for is almost certainly your SSH key's passphrase; there's nothing else that would ask for a passphrase here.

Hemanth V. Alluri (hypro999) said : #2

Thanks Colin Watson, that solved my question.

Hemanth V. Alluri (hypro999) said : #3

As a suggestion, it might be worth suggesting that one uses qastaging.launchpad.net over staging.launchpad.net when they go to make a repository.

Colin Watson (cjwatson) said : #4

Best to file suggestions as bugs or else they'll likely be lost or forgotten (https://bugs.launchpad.net/launchpad/+filebug). Thanks!