Labels: Type-Defect Priority-Medium
New issue 1750 by mountainmilk: Unable to dd svn+ssh repository when host
requires rsa cert auth & disallows password auth
*NOTE: Do not post confidential information in this bug report.*
What version are you running?
What's the URL of the page containing the problem?
What steps will reproduce the problem?
1. Navigate to the /admin/db/scmtools/repository/add/ page in the admin
2. Write a repository name
3. Change repository hosting service to Custom
4. Change repository type to Subversion
5. Use a repository that is on the same machine as reviewboard using ssh
certs as auth w/password auth disable. URI should be like
6. Leave username and password blank as auth is through ssh rsa cert.
What is the expected output? What do you see instead?
The repository should be succesfully added.
What operating system are you using? What browser?
Linux 220.127.116.11-0.2-default #1 SMP 2010-03-16 21:25:39 +0100 i686 i686 i386
Please provide any additional information below.
I have attached 4 files. The first being the an IRC chat from
#reviewboard-soc on freenode that I (AfterFall) had with ChipX86 regarding
this defect. The other 3 are copies of the pasteboards that are linked to
within the discussion.
As a summary of what I'm trying to accomplish:
I have a reviewboard install on a server which also hosts my SVN
repository. For svn authentication, I use ssh w/rsa certs and I have
disabled password authentication. When attempting to add an svn+ssh
repository I cannot due to various problems.
I did notice that if I fill in username and password and enable password
authentication in sshd_config I am able to authenticate through
reviewboard. This is not an option for me though as I have disabled
password auth for security reasons. The reviewboard logs for with password
auth allowed and disallowed is attached as pb1.txt.
As noted in the conversation, I am successfully able to connect to the
repository using pysvn in the python console. The method for doing this is
attached as pb2.txt.
Using a blank password & username I woudl receive an error in ReviewBoard:
local variable 'netloc_username' referenced before assignment
We then fixed this problem by modifying reviewboard/scmtools/core.py in the
get_auth_from_uri function by adding netlo_username = None after hostname =
url as stated in the irc conversation.
Making this correction changed the error message displayed to Unable to
authenticate against this repository with the provided username and
It was then determined that the certificates should be copied to the
$sitedir/data/.ssh directory. After copying the wwwrun users .ssh
directory to this directory an attempting to add the respository the same
error was received, however the ReviewBoard logs gave some different output
showing that the certificates were actually being used now. This is shown
in the pb3.txt attachment.
However there is still a problem with authentication as the certificate
appears to not be accepted.
"2010-08-06 13:16:31,196 - INFO - Authentication (publickey) failed."
At this point ChipX86 had to leave so our debugging efforts were on hold.
At this point the problem may not even be a ReviewBoard problem. (possibly
just something with the ssh key setup). Any suggestions on how to remedy
would be appreciated before closing the bug. Thanks.
svn+ssh-discussion.html 67.7 KB
pb1.txt 4.8 KB
pb2.txt 285 bytes
pb3.txt 2.1 KB
You received this message because you are subscribed to the Google Groups
To post to this group, send email to reviewboard-iss...@googlegroups.com.
To unsubscribe from this group, send email to
For more options, visit this group at