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

Re: Logging in as different user (ssh)

From: David Ripton <dripton_at_ripton.net>
Date: 2005-05-20 05:27:11 CEST

On 2005.05.19 11:18:15 +0000, Ben Collins-Sussman wrote:
> On May 19, 2005, at 10:46 AM, Michael L Brown wrote:
>
> >We are using the svn+ssh method for access to the repository. We
> >have a couple of remote users that have local login names that are
> >different than the login names here. Is there a way to config the
> >user's svn config file to tell it to add the option for the name to
> >use for the login?
>
> See chapter 6 in the book, there are many ways to do it.
>
> Easiest is just to put the username in the URL: svn+ssh://user@host/
> path

In openssh, you can put a block like this in ~/.ssh/config:

Host boom
User John.Doe
HostName boom.acme.com.invalid

Now anytime you refer to "boom", ssh knows you really mean
"Firstname.Lastname@boom.acme.com.invalid"

See the openssh docs for more detail. If you use some other ssh
program, it probably has something equivalent.

Usually this is just a shortcut to save typing, but if the URL is
hardcoded in an svn:externals property rather than entered by the user,
it actually becomes important.

-- 
David Ripton    dripton@ripton.net
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri May 20 05:28:46 2005

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.