Issue 1618: scp examples in documentation please add username@ part
Status:  Released
Owner: ----
Closed:  Oct 2012
Reported by darryl.m...@darrylmiles.org, Oct 19, 2012
It is common for SSH remote gerrit account usernames not to be the same as local usernames.

It is not clear in the documentation that the gerrit account username should be used with 'scp' for example installing Change-Id hooks.

For those with the same username locally and on gerrit specifying the username also works for them, even though the local username would be the default.  i.e. it is a win-win to update the documentation examples globally to include username.

This lowers support queries above these matters are the username is wrong and scp failing to work.

example:

scp -p -P 29418 username@review.example.com:hooks/commit-msg .git/hooks/

Oct 22, 2012
Project Member #1 david.pu...@sonymobile.com
Usernames were added on all the scp command examples in change 21470 [1] which was included in version 2.1.7

Are you using an older version of Gerrit?

[1] https://gerrit-review.googlesource.com/#/c/21470/

Oct 23, 2012
Project Member #2 david.pu...@sonymobile.com
(No comment was entered for this change.)
Status: AwaitingInformation
Oct 23, 2012
#3 darryl.m...@darrylmiles.org
This link was forwarded to me by a college:

http://gerrit.googlecode.com/svn/documentation/2.0/user-changeid.html

The version of gerrit in use here is 2.5-rc1 and if I search the on-board documentation I do see usernames.
Oct 23, 2012
#4 darryl.m...@darrylmiles.org
http://gerrit.googlecode.com/svn/documentation/2.1/user-changeid.html

This also exists but manually changing the version higher does not provide any match.  Maybe the filename changed ?

Also the 2.0 page is the highest match in google search here for the terms "gerrit scp hooks"  This may have been the original source of the URL cited to me.

Anyhow it is good that the project has already been updated.
Oct 23, 2012
Project Member #5 edwin.ke...@gmail.com
The 2.5 documentation is available at:
  http://gerrit-documentation.googlecode.com/svn/Documentation/2.5/user-changeid.html
Oct 23, 2012
Project Member #6 edwin.ke...@gmail.com
Judging from the hosted documentation this should be fixed from 2.2.0 [1].

[1] http://gerrit-documentation.googlecode.com/svn/Documentation/2.2.0/user-changeid.html
Status: Released
Labels: FixedIn-2.2.0