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

Re: overiding ssh user

From: Gary Thomas <gary_at_mlbassoc.com>
Date: 2005-09-22 12:49:35 CEST

On Thu, 2005-09-22 at 12:35 +0200, Ignacio García Fernández wrote:
> Hi all,
>
> I have the following problem
>
> I need to download a svn project into a computer. In that computer I'm
> 'userA'. But in the server I have no access as userA, instead I have an
> account as 'userB'. The server only accepts ssh access.
>
> The project I want to download has externals definitions.
>
> If I say
>
> svn co svn+ssh://userB@server/project/path
>
> as soon as the externals are to be downloaded, I am prompted for
> userA@server, because externals have no username specified.
>
> I've tried to create an alias for ssh, in order to force it to be ssh
> -luserB but it does not work.
>
> I've also tried using svn --username but it also does not work for the
> externals.
>
> I know that it must be socumented somewhere (I'm investigating it) but
> I'm quite in a hurry, so I ask you also in the meanwhile.

You could set this up in your SSH configuration file (on Linux,
~/.ssh/config) Simply define an alias for 'server' like this:

Host server
  Hostname server
  User userB

Then, when you reference svn+ssh://server/project/path, you'll
be logged in as userB.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Sep 22 12:52:20 2005

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