Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
becea8d1
Commit
becea8d1
authored
Jun 03, 2021
by
Anton Smith
Committed by
Achilleas Pipinellis
Jun 03, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Geo - Add path to authorized_keys file
parent
4db9364b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
doc/administration/operations/fast_ssh_key_lookup.md
doc/administration/operations/fast_ssh_key_lookup.md
+10
-3
No files found.
doc/administration/operations/fast_ssh_key_lookup.md
View file @
becea8d1
...
...
@@ -34,8 +34,15 @@ feature for CentOS 6, follow [the instructions on how to build and install a cus
## Fast lookup is required for Geo **(PREMIUM)**
By default, GitLab manages an
`authorized_keys`
file, which contains all the
public SSH keys for users allowed to access GitLab. However, to maintain a
By default, GitLab manages an
`authorized_keys`
file that is located in the
`git`
user's home directory. For most installations, this will be located under
`/var/opt/gitlab/.ssh/authorized_keys`
, but you can use the following command to locate the
`authorized_keys`
on your system.:
```
shell
getent passwd git |
cut
-d
:
-f6
|
awk
'{print $1"/.ssh/authorized_keys"}'
```
The
`authorized_keys`
file contains all the public SSH keys for users allowed to access GitLab. However, to maintain a
single source of truth,
[
Geo
](
../geo/index.md
)
needs to be configured to perform SSH fingerprint
lookups via database lookup.
...
...
@@ -73,7 +80,7 @@ sudo service sshd reload
```
Confirm that SSH is working by commenting out your user's key in the
`authorized_keys`
(start the line with a
`#`
to comment it), and attempting to pull a repository.
file
(start the line with a
`#`
to comment it), and attempting to pull a repository.
A successful pull would mean that GitLab was able to find the key in the database,
since it is not present in the file anymore.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment