On Mon, Jan 08, 2024 at 12:34:11PM -0500, Todd D. Taft wrote:
> For the purposes of gitolite and the gitolite.conf file, what
> is the name of the key? Does it come only from the filename,
> the comment string, or something else? Do those things have
> to match?
just the filename. "alice.pub" means the gitolite username is
"alice".
> Is it a problem if the key was generated with non-default
> options like ssh-keygen … -C comment? Are there characters
> that you can’t use in those names? Is there something else
> that I'm missing?
Comments inside the pubkey do not matter.
You should probably check the logs to see if the push succeeded
and the post-update hook ran, then check the keydir inside
~/.gitolite to see if the key made it, and so on.
Specifically, the logs should contain (among others) lines
similar to these:
<TIMESTAMP> <PID> system,gitolite compile
<TIMESTAMP> <PID> system,gitolite trigger POST_COMPILE
<TIMESTAMP> <PID> system,/home/g3/gitolite/src/triggers/post-compile/ssh-authkeys,POST_COMPILE
Then you should also see "alice.pub" (or whatever you called it)
in ~/.gitolite/keydir on the server