One way is to install gitolite, which allows you to declare and manage a set of users with, for instance ssh keys for authentication.
See "How do programs like gitolite work?" for more.
But you cal also plug gitolite with https, and use https authentication instead (with LDAP for example).
Gitolite is just a perl script which deals with authorization, not authentication.