Commit 565220f8 authored by Will Chandler's avatar Will Chandler Committed by Stan Hu

Wrap AuthorizedKeysCommand in Match statement

parent 2e08c928
...@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment