[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn+ssh - specifying login name

From: Kevin Old <kevinold_at_gmail.com>
Date: 2004-06-28 23:03:34 CEST

On Mon, 28 Jun 2004 14:02:36 -0400, Kevin Old <kevinold@gmail.com> wrote:
>
> On Mon, 28 Jun 2004 11:34:24 -0400, Stefanus Du Toit
> <sjdutoit@cgl.uwaterloo.ca> wrote:
> >
> > On Mon, Jun 28, 2004 at 11:31:22AM -0400, Kevin Old wrote:
> > > On Mon, 28 Jun 2004 10:59:10 -0400, Stefanus Du Toit
> > > <sjdutoit@cgl.uwaterloo.ca> wrote:
> > > >
> > > > svn co svn+ssh://username@host/path/to/repo
> > > >
> > > That only works for scp and sftp. With ssh there is a flag -l that
> > > allows you to specify the username on the server machine that you'd
> > > like to connect as.
> >
> > I've been using
> >
> > ssh foo@bar
> >
> > for years now. Any recent version of openssh should support this without
> > problem. What version of ssh are you using?
>
> Sorry, I was confused. The mistake I made was doing:
>
> ssh -l foo@bar instead of ssh foo@bar
>
> But, I'm still not able to connect as the user I'd like to. Here's
> what I'm using and receiving:
>
> [kevin@oc testdir]$ svn co
> svn+ssh://kdo@kold.homelinux.com/rep/svn/hgbc hgbctest
> kevin's password:
>
> Even after specifying "kdo" as the user (yes, kdo does have an account
> on the server) I'm still prompted for the password for "kevin".
>
> Any ideas?

Well, I ended up solving my own problem. What I was missing was the
SVN_SSH variable on my client machine. For the archives, going with
my example from above I did:

[kevin@oc testdir]$ export SVN_SSH='ssh -l kdo'
[kevin_at_oc testdir]$ svn+ssh://kdo@kold.homelinux.com/rep/svn/hgbc hgbctest
kdo's password:

Thanks again for your help,
Kevin

-- 
Kevin Old
kevinold@gmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Jun 28 23:05:54 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.