gpt4 book ai didi

ssh - Gitlab-无法添加SSH key

转载 作者:行者123 更新时间:2023-12-02 13:56:39 24 4
gpt4 key购买 nike

我已经在archlinux服务器上使用AUR安装了gitlab。
现在一切都运行良好,但无法添加ssh键。

我收到错误Fingerprint cannot be generated
在日志中,我只有

Started GET "/profile/keys/new" for my.ip.on.arch at 2015-03-28 13:13:52 +0100
Processing by Profiles::KeysController#new as HTML
Completed 200 OK in 159ms (Views: 110.9ms | ActiveRecord: 8.8ms)
Started POST "/profile/keys" for 92.157.142.177 at 2015-03-28 13:13:58 +0100
Processing by Profiles::KeysController#create as HTML
Parameters: {"utf8"=>"✓", "authenticity_token"=>"WX7VMJy1Ftk9xUWc7OL5zT5IrmqBbU22HJJVpFh6IBY=", "key"=>{"title"=>"my@email", "key"=>"ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDETfMjbXE8lZga4YWtO82dEH6AJYVOIt3L8emTEynpZed0WvDeky2tZT8VhwKSTjJ90e14usUxArOMaeWyQqdAhS3lym5DZlEN/vXfsUCnCuX3dpJfXjAefR9z9/BQdhwxwcf9cdWLGiixZ8U91Hs4k2RXPT4Q746jZCE/OyWLbO1mibaQD1mMkMf8d3jPJ9+jXAt2c2U83DPEaZ4AIm+M0Jv3X6MIQreeHgFRIg2lMEs16Mw/Y638ZK3WzX/qk1Z9RngKIkIh4afc9TZm2bt0jEUxXMly3cBQ03wTtmlf1lEkVNYjFP19fVfWei2JFdnEFLlsCuNpyeenwCTargwV my@email"}}
Completed 200 OK in 175ms (Views: 95.2ms | ActiveRecord: 12.6ms)

我只是想在所有我想过的地方测试chmod 777( /tmp/var/lib/gitlab/.ssh),但仍然失败。

我已经在带有SELinux的CentOS上阅读了很多有关此类问题的内容,但是我没有使用SELinux ...

如果有人有想法,那就太好了!
非常感谢,

最佳答案

该问题是由于新的openSSH版本引起的。在此提出了一个解决方案:
https://github.com/sstanovnik/gitlabhq/blob/openssh_fix/app/models/key.rb

在这里跟踪问题:https://github.com/gitlabhq/gitlabhq/pull/9008

关于ssh - Gitlab-无法添加SSH key ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29316996/

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