gpt4 book ai didi

ssh - 如何向 Gitolite 添加新的 ssh key

转载 作者:行者123 更新时间:2023-12-02 14:09:31 27 4
gpt4 key购买 nike

我只是想添加一个新 key 。所以我将它添加到keydir中,在gitolite conf中设置权限,提交并推送,但没有。

什么时候将新 key 添加到 .ssh 授权 key 文件中?因为似乎新 key 永远不会进入那里,这就是为什么使用 key 的人无法访问...

最佳答案

At what point does the new key get added to the .ssh authorized-keys file?



推送后立即提供您的 key :
  • 是一个公钥(一行类似于 ssh-rsa AAAAB3NzaC1yc2EAA...hFvETUVDvF2iZ )
  • 是要访问 gitolite 的资源名称之后的名称:tom.pub

  • 作为 OP Dee确认 in the comments ,问题出在代表用户的公钥文件名中:

    the only error is bad username and i think this is because I used a '/' in the name of a group of user



    确实, username pattern是:
    ^\@?[0-9a-zA-Z][-0-9a-zA-Z._\@+]*$

    没有' / ' 允许。

    关于ssh - 如何向 Gitolite 添加新的 ssh key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25246659/

    27 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com