Matthew Conway <conway@tripadvisor.com> wrote on 09/04/2005 11:10:32 PM:
> I'm trying to get svn+ssh working on OSX with little success. I have
> an anonymous svn connection working just fine using JavaHL, but need
> ssh access to be able to commit. I also have svn+ssh connections
> working just fine on the command line. I tried using JavaSVN, but
> can't even get a non-ssh connection working as it fails with the
> error message "svn: Unknown command 'get-locations'" (server version
> maybe?)
>
> The server I'm trying to access is svn://svn.forge.objectweb.org/
> svnroot/xwiki
> I have a fairly limited account, so I can't get a private key in there.
>
> If I run eclipse from Finder, when I try to create the repository svn
> +ssh://svn.forge.objectweb.org/svnroot/xwiki , it fails with the error:
>
> Network connection closed unexpectedly
> svn: Connection closed unexpectedly
>
> Note that the only field I have populated is URL, I also tried
> combinations of the others without any success.
>
> If I run eclipse from the command line, the ssh prompt for password
> shows up in the console window from which I launched eclipse, so I'm
> thinking that something funky is going on with with the handling of
> stdin/out in the javahl/ssh layer. If I specify my username in the
> url, and type the passwd in the console I launched eclipse from, then
> things seem to work fine. However, typing my passwd (twice!) for
> every op is unworkable, so I'd like subclipse to be able to handle my
> ssh user/pass for me. Is this possible?
No, it isn't. We provide your username and password to Subversion via
JavaHL and the rest is up to it. In the case of ssh, I do not believe
that Subversion does anything to manage your username and password. For
example, if you supply the --username and --password switches on the
command line, Subversion does not pass those on to your ssh client.
I have not used ssh myself, but from what I understand on the various
mailing lists, people tend to use a key-agent or something like that to
manage their password and certificates for their ssh clients. As I
understand it these agents will provide your credentials for you to the
ssh client.
We are working with JavaSVN on a prompting UI for supplying credentials
when it is you adapter, but for JavaHL this will not happen unless
Subversion itself changes, which does not seem likely.
Mark
_____________________________________________________________________________
Scanned for SoftLanding Systems, Inc. by IBM Email Security Management Services powered by MessageLabs.
_____________________________________________________________________________
Received on Tue Sep 6 23:11:44 2005