aliasing "git" ssh login to "gitolite"
Posted
by
Randal Schwartz
on Server Fault
See other posts from Server Fault
or by Randal Schwartz
Published on 2011-10-18T21:37:05Z
Indexed on
2011/11/14
1:54 UTC
Read the original article
Hit count: 623
I'm installing gitolite from CentOS packages for my client. The package creates a gitolite
user, which will be visible explicitly during a "git clone" operations. The client wants to use "git" and not "gitolite", in case we change to something more fancy later. I'm not very familiar with CentOS, so I don't want to try to build the package myself from source. I'm wondering if there's a way to do one of the following:
- Trick sshd into treating "git" as "gitolite".
- Somehow "alias" a new git username to be the same in all ways as the existing gitolite username (perhaps through some complex combinations of useradd).
- Rename the "gitolite" username to "git" without upsetting later
yum update
operations - Something else that I hadn't thought of
I'd appreciate detailed instructions or pointers.
© Server Fault or respective owner