Page MenuHomePhabricator

Gitiles should add username in git clone links, triggers "Permission denied (publickey)" error
Open, Needs TriagePublic

Description

On https://gerrit.wikimedia.org/r/plugins/gitiles/operations/mediawiki-config/ for example, the url it gives for cloning the repo is ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config. However, that doesn't work and instead gives a permission denied error.

$ git clone ssh://gerrit.wikimedia.org:29418/operations/mediawiki-config
Cloning into 'mediawiki-config'...
Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

Steeps to reproduce:

Excepted change :

  • The link in the command should contain the username of the logged-in user, like git clone ssh://framawiki@gerrit.wikimedia.org:29418/labs/tools/cdnjs-index. This command works.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 8 2018, 9:17 AM
Aklapper renamed this task from Incorrect gitiles git clone url to "git clone" URL shown on gitiles is incorrect, triggers "Permission denied (publickey)" error.Mar 8 2018, 12:32 PM

Apparently in gitiles it seems to only generate the ssh url without the users username.

Paladox moved this task from Backlog to Reported Upstream on the Upstream board.
Framawiki renamed this task from "git clone" URL shown on gitiles is incorrect, triggers "Permission denied (publickey)" error to Gitiles should add username in git clone links, triggers "Permission denied (publickey)" error.Aug 11 2018, 11:55 AM
Framawiki updated the task description. (Show Details)