Gitosis requires password even though the public key is given

前端 未结 11 765
挽巷
挽巷 2021-02-07 03:51

I\'m confronted with some problems when trying to configure gitosis on my Archlinux

http://wiki.archlinux.org/index.php/Setting_Up_Git_ACL_Using_gitosis

I referr

11条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-02-07 04:23

    Editing authorized_keys should not be necessary normally.

    I once had an authorization problem, the gitosis server kept asking me password even if I'd placed my public key before. I realized that gitosis gave me a warning "WARNING:gitosis.ssh:Unsafe SSH username in keyfile: 'myuser@myserver.pub'" when I've tried to commit and push my changes to gitosis.

    Changing the user@host part in the keyfile and keyfile name solved my problem. somehow gitosis did not like previous one.

提交回复
热议问题