Gitlab CE不会将公共密钥添加到authorized_keys [英] Gitlab CE Doesn't Add a Public Key to authorized_keys

查看:119
本文介绍了Gitlab CE不会将公共密钥添加到authorized_keys的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚在CentOS 7中安装了最新的Omnibus Gitlab.我已将公共密钥添加到我的帐户中,但是每次尝试使用ssh进行连接时,gitlab都会不断提示我输入密码,例如 ssh git@mygitlab.com..git home文件夹是/var/opt/gitlab .

I just installed the newest Omnibus Gitlab in CentOS 7. I have added my public key to my account but gitlab keeps prompting me for a password every time I try to connect using ssh, like ssh git@mygitlab.com. The git home folder is /var/opt/gitlab.

这是我所做的各种事情:

Here are the various things that I've done:

  • 我检查了是否在管理区域->设置->网络中检查了对authorized_keys的写操作

  • I have checked that write to authorized_keys is checked in the admin area -> settings -> network

我已经chmod相关的文件夹和 authorized_keys 文件. 0700 (对于home), 0711 (对于 .ssh )和 0600 (对于 authorized_key 文件)

I have chmod the relevant folders and authorized_keys file. 0700 for home, 0711 for .ssh and 0600 for authorized_key file

我已删除并重新创建了 authorized_keys 文件

I have deleted and re-created the authorized_keys file

我已经检查了各种gitlab日志文件,但没有显示任何线索

I have checked various gitlab log files and nothing shows any clue

我已使用 gitlab-ctl 重新启动并重新配置,并重新启动了计算机

I have restarted and reconfigured using gitlab-ctl and restarted the computer

推荐答案

您可能要配置这应该可以解决您面临的问题,并且无论何时有人在GitLab中添加或删除SSH/部署密钥,都不需要手动重建Authorized_keys文件.

This should solve the problem you're facing and it won't require manual rebuild of authorized_keys file whenever someone adds or removes SSH/deploy key in GitLab.

该错误是在GitLab 12.9中引入的.确认,应使用12.9.1补丁程序发行来解决,预计很快就会发布.

This bug was introduced with GitLab 12.9. It was confirmed and it should be resolved with 12.9.1 patch release, which is expected to be released soon.

这篇关于Gitlab CE不会将公共密钥添加到authorized_keys的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆