key-x is invalid! (ArgumentError)
Hello,
I have upgraded gitlab-shell from 7.1.5
to 8.1.0
on Arch and I can no longer connect through SSH with a key.
Trace
/usr/share/webapps/gitlab-shell/lib/gitlab_net.rb:168:in `parse_who': who='-c/usr/share/webapps/gitlab-shell/bin/gitlab-shell key-8' is invalid! (ArgumentError)
from /usr/share/webapps/gitlab-shell/lib/gitlab_shell.rb:25:in `initialize'
from /usr/share/webapps/gitlab-shell/bin/gitlab-shell:20:in `new'
from /usr/share/webapps/gitlab-shell/bin/gitlab-shell:20:in `<main>'
sshd_config
AuthorizedKeysCommand /var/lib/gitlab/gitlab-shell/bin/gitlab-shell-authorized-keys-check gitlab %u %k
AuthorizedKeysCommandUser gitlab
Check
$ sudo -u gitlab -s /bin/sh -c "cd '/usr/share/webapps/gitlab'; bundle-2.3 exec rake gitlab:gitlab_shell:check RAILS_ENV=production"
Checking GitLab Shell ...
GitLab Shell version >= 7.1.4 ? ... OK (8.1.0)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by gitlab:root, or gitlab:gitlab?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
[redacted]
Running /usr/share/webapps/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK
Access to /var/lib/gitlab/.ssh/authorized_keys: OK
gitlab-shell self-check successful
Checking GitLab Shell ... Finished