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:
- Log in into gerrit
- Go to https://gerrit.wikimedia.org/r/plugins/gitiles/labs/tools/cdnjs-index/
- Use the command provided (git clone ssh://gerrit.wikimedia.org:29418/labs/tools/cdnjs-index) to clone the repo
- It fails with Permission denied (publickey).
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.