Skip to content
Snippets Groups Projects
Commit 565220f8 authored by Will Chandler (ex-GitLab)'s avatar Will Chandler (ex-GitLab) Committed by Stan Hu
Browse files

Wrap AuthorizedKeysCommand in Match statement

parent 2e08c928
No related branches found
No related tags found
4 merge requests!158514Fix CodeReviewMetrics worker failure with kwargs,!27224Update stable branch yorick/test-release-tools for automatic RC 12.9.0-rc20200313145923.ee.0,!26962WIP: Allow GMA groups to specify their own PAT expiry setting (2/2),!24639WIP POC: Ss/realtime 2
...@@ -54,8 +54,10 @@ Add the following to your `sshd_config` file. This is usually located at ...@@ -54,8 +54,10 @@ Add the following to your `sshd_config` file. This is usually located at
Omnibus Docker: Omnibus Docker:
```plaintext ```plaintext
AuthorizedKeysCommand /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-shell-authorized-keys-check git %u %k Match User git # Apply the AuthorizedKeysCommands to the git user only
AuthorizedKeysCommandUser git AuthorizedKeysCommand /opt/gitlab/embedded/service/gitlab-shell/bin/gitlab-shell-authorized-keys-check git %u %k
AuthorizedKeysCommandUser git
Match all # End match, settings apply to all users again
``` ```
Reload OpenSSH: Reload OpenSSH:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment