3

git@domain already exists in my university network.

However, the Ubuntu 18.04 server that host git@domain is very unstable.

So I wished to set up a Debian server and install with Git.

Can I use hostname other than git to setup Git server?

It is necessary to create git user account for Git server to work?

Because I read many guides[1][2][3], all of them ask to run adduser git command.

4

1 回答 1

4

建议创建一个专用帐户(出于安全原因,如评论)

但是,Git 中没有任何内容涉及特定的用户名。

并且 git@aserver 可以被视为一个 SSH URL,这意味着甚至不会有一个“Git 服务器”,而只是一个sshd(SSH 守护进程)侦听查询以访问该帐户拥有的存储库(命名为 ' git' 或任何其他名称)

于 2019-05-06T05:00:35.587 回答