Thread:Talk:Git/Workflow/git review broken when cloning using review

When I cloned using the review shortcut recommended here:

the .git/config looked like:

[remote "gerrit"] fetch = +refs/heads/*:refs/remotes/gerrit/* url = ssh://review/mediawiki/extensions/Onboarding.git which makes sense. However, git review failed with:

Problems encountered installing commit-msg hook The following command failed with exit code 1 "scp -P 22 review:hooks/commit-msg .git/hooks/commit-msg" --- Permission denied (publickey). ---

until I changed it to:

ssh review prints the standard "Welcome to Gerrit Code Review...Unfortunately, interactive shells are disabled." so I think the .ssh/config is correct. It's:

Host review Hostname gerrit.wikimedia.org Port 29418 User mattflaschen

Am I missing something, or are these instructions wrong? Does anyone know the specific cause?