Re: Problems with ssh authentication for SVN in RB 1.5.5

2011-07-11 Thread Christian Hammond
Instead of simulating that with ssh, try rbssh. That's our custom SSH
wrapper we have to use. It's possible it's broken in some subtle way with
your setup.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Mon, Jul 11, 2011 at 9:45 AM, Jay jeremy.hankin...@gmail.com wrote:

 Hi

 I've been trying to setup access to an SVN repository using svn+ssh
 and I just can't get it to work and I can't seem to find anything in
 the logs about it either. Here's my setup, I really hoping someone can
 offer some insight in to why it's not working.

 I enter: svn+ssh://svns...@svnmirror.ingres.prv/var/svn/x100 as the
 URL and nothing in the username or pwd field

 I created the SSH keypair under settings-ssh in the admin pane and
 entered that in the ~svnsync/.ssh/authorized_keys file on the target
 machine.

 I even tested the connection from the command line using the generated
 key as the www-data user and it all seems to work:

 www-data@review:~/reviewboard/data/.ssh$ SVN_SSH=ssh -i `pwd`/id_rsa
 svn info svn+ssh://svnsync@svnmirror/var/svn/x100
 Could not create directory '/var/www/.ssh'.
 The authenticity of host 'svnmirror (10.3.11.116)' can't be
 established.
 RSA key fingerprint is 
 Are you sure you want to continue connecting (yes/no)? yes
 Failed to add the host to the list of known hosts (/var/www/.ssh/
 known_hosts).
 Path: x100
 URL: svn+ssh://svnsync@svnmirror/var/svn/x100
 Repository Root: svn+ssh://svnsync@svnmirror/var/svn/x100
 Repository UUID: ab64ac6b-3871-4731-ba5d-12d54109b087
 Revision: 6375
 Node Kind: directory
 Last Changed Author: Bonro01
 Last Changed Rev: 6375
 Last Changed Date: 2011-07-07 14:44:43 -0700 (Thu, 07 Jul 2011)

 Every time I try to save the repository in reviewboard, it gets as far
 as prompting me to accept the target machine as trusted (once) but
 then I just get:

 Unable to authentication against this repository using one of the
 supported authentication types

 There doesn't seem to be anything about it in the logs on either side
 either so I'm pretty much stuck at this point. Any pointers on what
 I'm doing wrong or where to find more info would be much appreciated.

 Thanks

 Jay

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: Problems with ssh authentication for SVN in RB 1.5.5

2011-07-11 Thread Jay
Great thanks!
I ran rbssh from the command line for both SVN and a regular
connection and got the following:

www-data@review:~/reviewboard$ rbssh svnsync@svnmirror
Traceback (most recent call last):
  File /usr/bin/rbssh, line 8, in module
load_entry_point('ReviewBoard==1.5.5.dev', 'console_scripts',
'rbssh')()
  File /usr/lib/python2.5/site-packages/ReviewBoard-1.5.5.dev-
py2.5.egg/reviewboard/cmdline/rbssh.py, line 267, in main
client.set_missing_host_key_policy(paramiko.WarningPolicy())
AttributeError: 'module' object has no attribute 'WarningPolicy'

So I update paramiko using easy_install and that seemed to resolve the
issue. I can now connect from Reviewboard!

I'm not entirely sure the paramiko version _was_ the cause of the
reviewboard error as I wasn't getting an error anything like that but
eitherway it resolved the issue.
Thanks for the info about rbssh, no doubt that will be useful in the
future.

J

On Jul 11, 12:41 pm, Christian Hammond chip...@chipx86.com wrote:
 Instead of simulating that with ssh, try rbssh. That's our custom SSH
 wrapper we have to use. It's possible it's broken in some subtle way with
 your setup.

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com







 On Mon, Jul 11, 2011 at 9:45 AM, Jay jeremy.hankin...@gmail.com wrote:
  Hi

  I've been trying to setup access to an SVN repository using svn+ssh
  and I just can't get it to work and I can't seem to find anything in
  the logs about it either. Here's my setup, I really hoping someone can
  offer some insight in to why it's not working.

  I enter: svn+ssh://svns...@svnmirror.ingres.prv/var/svn/x100 as the
  URL and nothing in the username or pwd field

  I created the SSH keypair under settings-ssh in the admin pane and
  entered that in the ~svnsync/.ssh/authorized_keys file on the target
  machine.

  I even tested the connection from the command line using the generated
  key as the www-data user and it all seems to work:

  www-data@review:~/reviewboard/data/.ssh$ SVN_SSH=ssh -i `pwd`/id_rsa
  svn info svn+ssh://svnsync@svnmirror/var/svn/x100
  Could not create directory '/var/www/.ssh'.
  The authenticity of host 'svnmirror (10.3.11.116)' can't be
  established.
  RSA key fingerprint is 
  Are you sure you want to continue connecting (yes/no)? yes
  Failed to add the host to the list of known hosts (/var/www/.ssh/
  known_hosts).
  Path: x100
  URL: svn+ssh://svnsync@svnmirror/var/svn/x100
  Repository Root: svn+ssh://svnsync@svnmirror/var/svn/x100
  Repository UUID: ab64ac6b-3871-4731-ba5d-12d54109b087
  Revision: 6375
  Node Kind: directory
  Last Changed Author: Bonro01
  Last Changed Rev: 6375
  Last Changed Date: 2011-07-07 14:44:43 -0700 (Thu, 07 Jul 2011)

  Every time I try to save the repository in reviewboard, it gets as far
  as prompting me to accept the target machine as trusted (once) but
  then I just get:

  Unable to authentication against this repository using one of the
  supported authentication types

  There doesn't seem to be anything about it in the logs on either side
  either so I'm pretty much stuck at this point. Any pointers on what
  I'm doing wrong or where to find more info would be much appreciated.

  Thanks

  Jay

  --
  Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
  Happy user? Let us know athttp://www.reviewboard.org/users/
  -~--~~~~--~~--~--~---
  To unsubscribe from this group, send email to
  reviewboard+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en


Re: Problems with ssh authentication for SVN in RB 1.5.5

2011-07-11 Thread Christian Hammond
Awesome.

Do you know what version you were using? We can specify a minimum.

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Mon, Jul 11, 2011 at 2:36 PM, Jay jeremy.hankin...@gmail.com wrote:

 Great thanks!
 I ran rbssh from the command line for both SVN and a regular
 connection and got the following:

 www-data@review:~/reviewboard$ rbssh svnsync@svnmirror
 Traceback (most recent call last):
  File /usr/bin/rbssh, line 8, in module
load_entry_point('ReviewBoard==1.5.5.dev', 'console_scripts',
 'rbssh')()
  File /usr/lib/python2.5/site-packages/ReviewBoard-1.5.5.dev-
 py2.5.egg/reviewboard/cmdline/rbssh.py, line 267, in main
client.set_missing_host_key_policy(paramiko.WarningPolicy())
 AttributeError: 'module' object has no attribute 'WarningPolicy'

 So I update paramiko using easy_install and that seemed to resolve the
 issue. I can now connect from Reviewboard!

 I'm not entirely sure the paramiko version _was_ the cause of the
 reviewboard error as I wasn't getting an error anything like that but
 eitherway it resolved the issue.
 Thanks for the info about rbssh, no doubt that will be useful in the
 future.

 J

 On Jul 11, 12:41 pm, Christian Hammond chip...@chipx86.com wrote:
  Instead of simulating that with ssh, try rbssh. That's our custom SSH
  wrapper we have to use. It's possible it's broken in some subtle way with
  your setup.
 
  Christian
 
  --
  Christian Hammond - chip...@chipx86.com
  Review Board -http://www.reviewboard.org
  VMware, Inc. -http://www.vmware.com
 
 
 
 
 
 
 
  On Mon, Jul 11, 2011 at 9:45 AM, Jay jeremy.hankin...@gmail.com wrote:
   Hi
 
   I've been trying to setup access to an SVN repository using svn+ssh
   and I just can't get it to work and I can't seem to find anything in
   the logs about it either. Here's my setup, I really hoping someone can
   offer some insight in to why it's not working.
 
   I enter: svn+ssh://svns...@svnmirror.ingres.prv/var/svn/x100 as the
   URL and nothing in the username or pwd field
 
   I created the SSH keypair under settings-ssh in the admin pane and
   entered that in the ~svnsync/.ssh/authorized_keys file on the target
   machine.
 
   I even tested the connection from the command line using the generated
   key as the www-data user and it all seems to work:
 
   www-data@review:~/reviewboard/data/.ssh$ SVN_SSH=ssh -i `pwd`/id_rsa
   svn info svn+ssh://svnsync@svnmirror/var/svn/x100
   Could not create directory '/var/www/.ssh'.
   The authenticity of host 'svnmirror (10.3.11.116)' can't be
   established.
   RSA key fingerprint is 
   Are you sure you want to continue connecting (yes/no)? yes
   Failed to add the host to the list of known hosts (/var/www/.ssh/
   known_hosts).
   Path: x100
   URL: svn+ssh://svnsync@svnmirror/var/svn/x100
   Repository Root: svn+ssh://svnsync@svnmirror/var/svn/x100
   Repository UUID: ab64ac6b-3871-4731-ba5d-12d54109b087
   Revision: 6375
   Node Kind: directory
   Last Changed Author: Bonro01
   Last Changed Rev: 6375
   Last Changed Date: 2011-07-07 14:44:43 -0700 (Thu, 07 Jul 2011)
 
   Every time I try to save the repository in reviewboard, it gets as far
   as prompting me to accept the target machine as trusted (once) but
   then I just get:
 
   Unable to authentication against this repository using one of the
   supported authentication types
 
   There doesn't seem to be anything about it in the logs on either side
   either so I'm pretty much stuck at this point. Any pointers on what
   I'm doing wrong or where to find more info would be much appreciated.
 
   Thanks
 
   Jay
 
   --
   Want to help the Review Board project? Donate today at
  http://www.reviewboard.org/donate/
   Happy user? Let us know athttp://www.reviewboard.org/users/
   -~--~~~~--~~--~--~---
   To unsubscribe from this group, send email to
   reviewboard+unsubscr...@googlegroups.com
   For more options, visit this group at
  http://groups.google.com/group/reviewboard?hl=en

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en


-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: Problems with ssh authentication for SVN in RB 1.5.5

2011-07-11 Thread Jay
OK, did some more poking around just to be sure and it looks like that
IS the problem. The version of Ubuntu we're using (Hardy LTS) uses
paramiko version 1.6.4 even at the latest update. Upgrading to 1.7.7.1
fixed it.

On Jul 11, 2:46 pm, Christian Hammond chip...@chipx86.com wrote:
 Awesome.

 Do you know what version you were using? We can specify a minimum.

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.reviewboard.org
 VMware, Inc. -http://www.vmware.com







 On Mon, Jul 11, 2011 at 2:36 PM, Jay jeremy.hankin...@gmail.com wrote:
  Great thanks!
  I ran rbssh from the command line for both SVN and a regular
  connection and got the following:

  www-data@review:~/reviewboard$ rbssh svnsync@svnmirror
  Traceback (most recent call last):
   File /usr/bin/rbssh, line 8, in module
     load_entry_point('ReviewBoard==1.5.5.dev', 'console_scripts',
  'rbssh')()
   File /usr/lib/python2.5/site-packages/ReviewBoard-1.5.5.dev-
  py2.5.egg/reviewboard/cmdline/rbssh.py, line 267, in main
     client.set_missing_host_key_policy(paramiko.WarningPolicy())
  AttributeError: 'module' object has no attribute 'WarningPolicy'

  So I update paramiko using easy_install and that seemed to resolve the
  issue. I can now connect from Reviewboard!

  I'm not entirely sure the paramiko version _was_ the cause of the
  reviewboard error as I wasn't getting an error anything like that but
  eitherway it resolved the issue.
  Thanks for the info about rbssh, no doubt that will be useful in the
  future.

  J

  On Jul 11, 12:41 pm, Christian Hammond chip...@chipx86.com wrote:
   Instead of simulating that with ssh, try rbssh. That's our custom SSH
   wrapper we have to use. It's possible it's broken in some subtle way with
   your setup.

   Christian

   --
   Christian Hammond - chip...@chipx86.com
   Review Board -http://www.reviewboard.org
   VMware, Inc. -http://www.vmware.com

   On Mon, Jul 11, 2011 at 9:45 AM, Jay jeremy.hankin...@gmail.com wrote:
Hi

I've been trying to setup access to an SVN repository using svn+ssh
and I just can't get it to work and I can't seem to find anything in
the logs about it either. Here's my setup, I really hoping someone can
offer some insight in to why it's not working.

I enter: svn+ssh://svns...@svnmirror.ingres.prv/var/svn/x100 as the
URL and nothing in the username or pwd field

I created the SSH keypair under settings-ssh in the admin pane and
entered that in the ~svnsync/.ssh/authorized_keys file on the target
machine.

I even tested the connection from the command line using the generated
key as the www-data user and it all seems to work:

www-data@review:~/reviewboard/data/.ssh$ SVN_SSH=ssh -i `pwd`/id_rsa
svn info svn+ssh://svnsync@svnmirror/var/svn/x100
Could not create directory '/var/www/.ssh'.
The authenticity of host 'svnmirror (10.3.11.116)' can't be
established.
RSA key fingerprint is 
Are you sure you want to continue connecting (yes/no)? yes
Failed to add the host to the list of known hosts (/var/www/.ssh/
known_hosts).
Path: x100
URL: svn+ssh://svnsync@svnmirror/var/svn/x100
Repository Root: svn+ssh://svnsync@svnmirror/var/svn/x100
Repository UUID: ab64ac6b-3871-4731-ba5d-12d54109b087
Revision: 6375
Node Kind: directory
Last Changed Author: Bonro01
Last Changed Rev: 6375
Last Changed Date: 2011-07-07 14:44:43 -0700 (Thu, 07 Jul 2011)

Every time I try to save the repository in reviewboard, it gets as far
as prompting me to accept the target machine as trusted (once) but
then I just get:

Unable to authentication against this repository using one of the
supported authentication types

There doesn't seem to be anything about it in the logs on either side
either so I'm pretty much stuck at this point. Any pointers on what
I'm doing wrong or where to find more info would be much appreciated.

Thanks

Jay

--
Want to help the Review Board project? Donate today at
   http://www.reviewboard.org/donate/
Happy user? Let us know athttp://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at
   http://groups.google.com/group/reviewboard?hl=en

  --
  Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
  Happy user? Let us know athttp://www.reviewboard.org/users/
  -~--~~~~--~~--~--~---
  To unsubscribe from this group, send email to
  reviewboard+unsubscr...@googlegroups.com
  For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/