Addition to the use case Was: Re: "Virtual hosts" for ssh

Carson Gaspar carson at
Sun Jun 9 10:02:17 EST 2013

On 6/8/13 3:08 PM, Johannes Ernst wrote:
> Assume I set up 3 gits on server1 and 3 gits on server2. To keep the
> repositories separate, I create separate users: users git1, git2,
> git3 on server1 (with host name aliases host1, host2 and host3, each
> of which has a git instance) users git1, git2, git3 on server2 (with
> host name aliases host3, host4 and host5, each of which has a git
> instance)
> Now, for some reason two of the repositories on server1 get really
> popular, so I need to move one of it to server2. All of a sudden,
> there's a conflict: user git2 from server1 is not and should not be
> the same as user git2 on server2. So I'd have to rename one of them,
> and all of my users need to change their client-side setup.

The setup you describe is just badly designed, so of course it doesn't 
work well. Set up a CNAME per account (which the VH proposal already 
requires), and make the account names globally unique. You can now 
migrate between servers to your heart's content without the users having 
to change a thing.


More information about the openssh-unix-dev mailing list