Enable option AuthorizedKeysFile in sshd_config in 12.0 (default is none)
Summary
I'm using docker version of gitlab-ee
In new version (12.0) in sshd config file (/assets/sshd_config) option AuthorizedKeysFile is set to none, but previos version it is set to %h/.ssh/authorized_keys /gitlab-data/ssh/authorized_keys
. Setting it to none brokes ssh authentication by authorized_keys_proxy file, wich allow simultaneously have 22 port as host default ssh port and as gitlab access port. (When using authorized_keys_proxy file and reconnect inside container, when try to connect to git@localhost)
Steps to reproduce
New version:
docker run --rm -it gitlab/gitlab-ee:latest cat /assets/sshd_config | grep AuthorizedKeysFile
Old version:
docker run --rm -it gitlab/gitlab-ee:11.11.3-ee.0 cat /assets/sshd_config | grep AuthorizedKeysFile
What is the current bug behavior?
sshd inside container do not read proxied authorized_keys file and do not allow redirect ssh connection from host into container
Possible fixes
set AuthorizedKeysFile %h/.ssh/authorized_keys /gitlab-data/ssh/authorized_keys
in /assets/sshd_config