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.

No One
  • 39
  • 5
  • It's not necessary but it is recommended for security reasons. If you run a git server on the machine (that accepts remote connections) then you must run it as some username and you are giving remote access out to anything on your system that can be accessed by that username – M.M May 06 '19 at 03:40

1 Answers1

4

It is recommended to create a dedicated account (for security reason as commented)

However, nothing in Git involves a specific user name.

And git@aserver can be seen as an SSH URL, which means there would not even be a "Git server", but simply an sshd (SSH daemon) listening for queries in order to access repositories owned by that account( be it named 'git' or any other name)

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250