diff options
author | Jeff Blaine <jblaine@kickflop.net> | 2015-04-09 20:36:46 -0400 |
---|---|---|
committer | Jeff Blaine <jblaine@kickflop.net> | 2015-06-19 14:49:23 -0400 |
commit | 39ad10f9fee0ed090e4da2a94d0c9fc8373e0d5a (patch) | |
tree | 871cdeb7b6d60a8a2f6247373d06d7dad0ef64a6 /doc | |
parent | 6c0db42951d65eeb231046d25302afbd42a43a69 (diff) | |
download | gitlab-ce-39ad10f9fee0ed090e4da2a94d0c9fc8373e0d5a.tar.gz |
Include non-default ssh key location info
Fixes https://gitlab.com/gitlab-org/gitlab-ce/issues/875
Provide help for people who aren't SSH-clued by indicating
how to point to key files that have been named something
other than the default. A lot of people seem to assume that
the filename they choose is irrelevant and then wonder why
their private key is not being found by simple 'ssh' commands.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/ssh/README.md | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/doc/ssh/README.md b/doc/ssh/README.md index 0acf92fbf54..d6276cb0c4b 100644 --- a/doc/ssh/README.md +++ b/doc/ssh/README.md @@ -30,7 +30,7 @@ cat ~/.ssh/id_rsa.pub Copy-paste the key to the 'My SSH Keys' section under the 'SSH' tab in your user profile. Please copy the complete key starting with `ssh-` and ending -with your username and host. +with your username and host. Use code below to copy your public key to the clipboard. Depending on your OS you'll need to use a different command: @@ -77,3 +77,29 @@ information. ### Eclipse How to add your ssh key to Eclipse: http://wiki.eclipse.org/EGit/User_Guide#Eclipse_SSH_Configuration + +## Tip: Non-default OpenSSH key file names or locations + +If, for whatever reason, you decide to specify a non-default location and filename for your Gitlab SSH key pair, you must configure your SSH client to find your Gitlab SSH private key for connections to your Gitlab server (perhaps gitlab.com). +For OpenSSH clients, this is handled in the `~/.ssh/config` file with a stanza similar to the following: + +``` +# +# Main gitlab.com server +# +Host gitlab.com +RSAAuthentication yes +IdentityFile ~/my-ssh-key-directory/my-gitlab-private-key-filename +``` + +Another example +``` +# +# Our company's internal Gitlab server +# +Host my-gitlab.company.com +RSAAuthentication yes +IdentityFile ~/my-ssh-key-directory/company-com-private-key-filename +``` + +Due to the wide variety of SSH clients and their very large number of configuration options, further explanation of this topic is beyond the scope of this document. |