From fb95a1bfe8b8a534afe443d53d4fe22b7f373f85 Mon Sep 17 00:00:00 2001 From: Edwin Kempin Date: Wed, 5 Oct 2011 10:08:00 +0200 Subject: [PATCH] Update documentation for testing SSH connection The command output that is shown in the example and the description how to set the ssh username are outdated. Update both to be correct again. Change-Id: I1529e9c46ba35462ad3bf411b30cfaa4c74cead5 Signed-off-by: Edwin Kempin --- Documentation/user-upload.txt | 19 +++++++++++++++---- 1 file changed, 15 insertions(+), 4 deletions(-) diff --git a/Documentation/user-upload.txt b/Documentation/user-upload.txt index 8a08317ce6..29a1bcc807 100644 --- a/Documentation/user-upload.txt +++ b/Documentation/user-upload.txt @@ -60,14 +60,25 @@ to connect to Gerrit's SSHD port. By default Gerrit is running on port 29418, using the same hostname as the web server: ==== +.................................................................. $ ssh -p 29418 sshusername@hostname - gerrit: no shell available + + **** Welcome to Gerrit Code Review **** + + Hi John Doe, you have successfully connected over SSH. + + Unfortunately, interactive shells are disabled. + To clone a hosted Git repository, use: + + git clone ssh://sshusername@hostname:29418/REPOSITORY_NAME.git + Connection to hostname closed. +.................................................................. ==== -In the command above, `sshusername` was configured on the `SSH Keys` -tab of the `Settings` screen. If it is not set, propose a name -and use `Change Username` to select the name. +In the command above, `sshusername` was configured as `Username` on +the `Profile` tab of the `Settings` screen. If it is not set, +propose a name and use `Select Username` to select the name. To determine the port number Gerrit is running on, visit the special information URL `http://'hostname'/ssh_info`, and copy the port