You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Ignacio García Fernández <ig...@uv.es> on 2005/09/22 10:35:36 UTC
overiding ssh user
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.
Thank you very much.
Ignacio García
--
May the source be with you
---------------------------------------------------------------
Ignacio García Fernández Instituto de Robótica
ignacio.garcia_at_uv.es Universidad de Valencia
http://robotica.uv.es/~ignacio/ Tlf. +34 96 354 3564
Re: overiding ssh user
Posted by Gary Thomas <ga...@mlbassoc.com>.
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