Can not add user with Gitolite (centos)

前端 未结 1 1320
耶瑟儿~
耶瑟儿~ 2021-01-15 14:09

I am newby with gitolite. I\'ve install gitolite on a remote server(192.168.1.109)

So I could git-cloning gitolite-admin.git.

git clone ssh://git@192         


        
相关标签:
1条回答
  • 2021-01-15 14:54

    If you have generated a test.pub key, you should use a test user in your gitolite.conf.

    Try again, as I mention in:

    • "gitolite setup getting FATAL: fingerprinting failed for '/tmp/Q3pnE4WVbu'"
    • "Gitolite - remote: FATAL: fingerprinting failed for 'keydir/'"

    ssh-keygen -t rsa -f "${H}/.ssh/test" -C "Gitolite Admin access (not interactive)" -q -P ""

    As illustrated in this blog post:

    Digging about in the gitolite code reveals this error is thrown when a regex fails to find a valid looking fingerprint after running ssh-keygen -l -f 'path/to/key.pub'. (See man ssh-keygen for details).

    To resolve the issue, run that command locally and have it generate a valid fingerprint before you push your configuration changes to the gitolite server. I found my issue was that I had failed to include the 'ssh-rsa ' prefix to the key.

    0 讨论(0)
提交回复
热议问题