Re: Subversion over SSH works through GIT but not with SVN
Hello Greg, hello list, thank you very much for your answer, it was very useful! Greg Larkin wrote: On 4/20/11 7:21 AM, Michael Grünewald wrote: I have recently discovered that by subversion client (1.16_2) is not able any more to access my subversion accounts over svn+ssh (with key based authentication). It seems very odd to me, because in the same time git can access these accounts (with the git svn command) and commit to these repositories! [...] Finally, if all else fails, I run commands through truss or strace to see if there are any strange errors generated by system calls, like a missing library or config file, or an unexpected chdir() or chroot(). I feel here a bit ashamed: I plainly forgot to inform subversion that my login name on the remote machine is not the same as on the local, what git has been told years ago. Your clue to use ssh instead of the svn put me on the right track. To my defence, the login name that ssh uses during its conversation is not printed on the diagnostic line when verbose output is enabled. While this information is very basic and elementary, it maybe would be useful to debug a connection (I admit, ``login name'' should stand quite high on the list of things to check when something goes wrong!) In my case, if the login names had been present in the verbose output os SSH ,I woud have spotted it by diff'ing the outputs of the successful and unsuccessful transactions. Maybe I should file a PR for this? Why do I instantly think ``login name'' when I hear ssh and not when I hear svn? Well, I hope my therapist will be able to help me sorting it out :) -- Thank you very much, Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Subversion over SSH works through GIT but not with SVN
Hi all, I have recently discovered that by subversion client (1.16_2) is not able any more to access my subversion accounts over svn+ssh (with key based authentication). It seems very odd to me, because in the same time git can access these accounts (with the git svn command) and commit to these repositories! I am here absolutely clueless, so I would welcome your insights and your help! I set up `SVN_SSH' to `ssh -vv' in order to get a little more feedback than the `connexion unexpectedly closed' that subversion gave me. Here is an exceirpt of the successful svn+ssh authentication achieved by git svn: debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /home/michael/.ssh/id_rsa (0x801a61680) debug2: key: /home/michael/.ssh/id_dsa (0x0) debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/michael/.ssh/id_rsa debug2: we sent a publickey packet, wait for reply debug1: Server accepts key: pkalg ssh-rsa blen 277 on the pure svn side I have instead debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /home/michael/.ssh/id_rsa (0x801a61660) debug2: key: /home/michael/.ssh/id_dsa (0x0) debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/michael/.ssh/id_rsa debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey debug1: Trying private key: /home/michael/.ssh/id_dsa debug2: we did not send a packet, disable method (this is the point were the two transcripts start to disagree). I do not know what is the hex value after the name of the file containing my private key, but it semms weird to me that the two runs give here different results! Do you see a symptom related to my problem? -- Thanks a lot, Michael ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: Subversion over SSH works through GIT but not with SVN
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 4/20/11 7:21 AM, Michael Grünewald wrote: Hi all, I have recently discovered that by subversion client (1.16_2) is not able any more to access my subversion accounts over svn+ssh (with key based authentication). It seems very odd to me, because in the same time git can access these accounts (with the git svn command) and commit to these repositories! I am here absolutely clueless, so I would welcome your insights and your help! I set up `SVN_SSH' to `ssh -vv' in order to get a little more feedback than the `connexion unexpectedly closed' that subversion gave me. Here is an exceirpt of the successful svn+ssh authentication achieved by git svn: debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /home/michael/.ssh/id_rsa (0x801a61680) debug2: key: /home/michael/.ssh/id_dsa (0x0) debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/michael/.ssh/id_rsa debug2: we sent a publickey packet, wait for reply debug1: Server accepts key: pkalg ssh-rsa blen 277 on the pure svn side I have instead debug1: SSH2_MSG_SERVICE_ACCEPT received debug2: key: /home/michael/.ssh/id_rsa (0x801a61660) debug2: key: /home/michael/.ssh/id_dsa (0x0) debug1: Authentications that can continue: publickey debug1: Next authentication method: publickey debug1: Offering public key: /home/michael/.ssh/id_rsa debug2: we sent a publickey packet, wait for reply debug1: Authentications that can continue: publickey debug1: Trying private key: /home/michael/.ssh/id_dsa debug2: we did not send a packet, disable method (this is the point were the two transcripts start to disagree). I do not know what is the hex value after the name of the file containing my private key, but it semms weird to me that the two runs give here different results! Do you see a symptom related to my problem? Hi Michael, I think the hex value discrepancy is significant, but I'm not yet sure why the value changes. The private key filename looks the same. When I run into problems like this, I first start by eliminating the application connecting through ssh and just try a standard ssh connection like so: ssh -vvv -l username hostname You may also want to add -i ~/.ssh/id_rsa to the command line to see if that changes anything. If you authenticate successfully with that command, then check the ~/.subversion/config file for suspect entries in the [tunnels] section. Finally, if all else fails, I run commands through truss or strace to see if there are any strange errors generated by system calls, like a missing library or config file, or an unexpected chdir() or chroot(). Hope that helps, Greg - -- Greg Larkin http://www.FreeBSD.org/ - The Power To Serve http://www.sourcehosting.net/ - Ready. Set. Code. http://twitter.com/sourcehosting/ - Follow me, follow you -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAk2vROsACgkQ0sRouByUApDzZwCfaQ1TPWXr4YFNKRhE792XXR3o LBMAnjWrw8Y+DqZnAz9YJqP/Qh9lS7uX =wtcF -END PGP SIGNATURE- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org