小编Sli*_*ipY的帖子

GitLab SSH密钥停止工作

好吧,我多次偶然发现这个话题,但这是第一次没有常规解决方案有效.

我有运行GitLab的CentOS 6.4服务器.它已经有超过20个用户和60多个项目,但大约5个小时前,我的主要登台服务器第一次无法使用密钥身份验证连接到GitLab计算机,并提示输入密码.我重新生成了RSA密钥并将其添加到我的部署密钥中,但也失败了.

接下来,我尝试在登台服务器上创建一个新用户,为它创建一个密钥,然后将其添加到GitLab,但它仍然失败.

权限:

drwxr-x---  22 root root 4.0K Oct 28 13:20 root
Run Code Online (Sandbox Code Playgroud)

内根:

drwx------   2 root root     4096 Oct 28 11:49 .ssh
Run Code Online (Sandbox Code Playgroud)

里面.ssh:

-rw-------  1 root root  227 Oct 28 11:48 authorized_keys
-rw-------  1 root root 1675 Oct 28 13:09 id_rsa
-rw-------  1 root root  398 Oct 28 13:09 id_rsa.pub
-rw-r--r--  1 root root  413 Oct 28 11:49 known_hosts
Run Code Online (Sandbox Code Playgroud)

当我尝试连接到git机器时:

OpenSSH_4.3p2, OpenSSL 0.9.8e-fips-rhel5 01 Jul 2008
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for * …
Run Code Online (Sandbox Code Playgroud)

git ssh github gitlab private-key

8
推荐指数
1
解决办法
9134
查看次数

标签 统计

git ×1

github ×1

gitlab ×1

private-key ×1

ssh ×1