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
de45ba49
Commit
de45ba49
authored
May 27, 2018
by
Yvan BARTHÉLEMY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Explain how to use a specific identity in a repo
Caveats: Requires Git 2.10 and does not use the SSH Agent.
parent
99b65a12
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
doc/ssh/README.md
doc/ssh/README.md
+9
-0
No files found.
doc/ssh/README.md
View file @
de45ba49
...
...
@@ -151,6 +151,15 @@ Host gitlab.company.com
RSAAuthentication yes
IdentityFile ~/.ssh/config/private-key-filename
```
If you want to use different keys depending on the repository you are working
on, you can issue the following command while inside your repository:
```
git config core.sshCommand "ssh -o IdentitiesOnly=yes -i ~/.ssh/private-key-filename-for-this-repository -F /dev/null"
```
Please note that such a configuration will not use the SSH Agent and requires
at least Git 2.10.
Due to the wide variety of SSH clients and their very large number of
configuration options, further explanation of these topics is beyond the scope
...
...
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