Skip to content

disable StrictModes in sshd_config

Currently authenticating as the "git" user, whose authorized_keys are stored in /gitlab-data/ssh/authorized_keys, does not work because /gitlab-data is owned by root and does not have the proper mode required by the StrictModes check in sshd.

==> /var/log/gitlab/sshd/current <== 2017-05-26_18:01:27.64848 Authentication refused: bad ownership or modes for directory /gitlab-data 2017-05-26_18:01:27.64996 Authentication refused: bad ownership or modes for directory /gitlab-data 2017-05-26_18:01:27.65180 Connection closed by 10.129.0.1 port 56336 [preauth]

This PR disables StrictModes

Edited by username-removed-799439

Merge request reports