问题原文
原帖链接 · Florian Mertens · CC BY-SA 3.0
I am installing gitolite3 on a server, with ssh and http pulling/pushing/alltherest. During the process, a user and group gitolite3 is created.
When I run:
$ ssh gitolite3@server info
I get the correct gitolite3 message with RW repo information.
Trouble is, I want the usual user git instead of the cumbersome gitolite3, without breaking it all apart. Some other thread mentioned creating the user git with the same uid ang gid, but this does not give the same results as above.
When I login (using the conventional graphical login screen), there is my usual administrator user, and somehow the gitolite3 username (but Im not sure if this is the gitolite3 or the git user alias that i created).
How do I create the git user/replace the gitolite3 user so that ssh git@server info works with gitolite3? And what determines exactly when a user can login using the login screen, and how do turn that off?
社区高分解答
原帖链接 · Lanzaa · CC BY-SA 3.0
If you don't already have a git user and basically want to rename the default gitolite3 user it may be fairly easy. Try running the following command as a privileged user.
usermod -l git gitolite3
This should rename the gitolite3 user to git. Which should allow the ssh commands to work as you wanted.
ssh git@hostname info
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
