git命令“突然”需要git @密码

时间:2015-09-06 11:46:08

标签: git ssh gitlab

从gitlab版本7.14.0升级到7.14.1看似成功后,git命令突然需要git@MyGitlabServer.com的密码。这个问题似乎源于gitlab服务器上git用户的一个错误的authorized_keys文件;

$ cat /home/git/.ssh/authorized_keys
# Managed by gitlab-shell
command="/home/git/gitlab-shell/bin/gitlab-shell key-39",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa [long key here] myemail@server.com

然而,似乎没问题:

$ gitlab-shell/bin/check
Check GitLab API access: OK
Check directories and files: 
    /home/git/repositories/: OK
    /home/git/.ssh/authorized_keys: OK
Test redis-cli executable: redis-cli 2.4.14
Send ping to redis server: PONG

所有gitlab更新后控制检查均为绿色。

有什么想法吗?

0 个答案:

没有答案