diff options
author | Rick Cogley <rick.cogley@esolia.co.jp> | 2019-01-04 16:40:37 +0900 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-01-05 12:54:46 -0500 |
commit | 6675d4742a6ff256fc58fd733464e2bb4f5faed5 (patch) | |
tree | ec65e671e1125cc276dc0f55de2bc87ba48f7b26 | |
parent | 369c900f7aae7c79d339489c196d1f38f57cc8bc (diff) | |
download | sr.ht-docs-6675d4742a6ff256fc58fd733464e2bb4f5faed5.tar.gz |
Add text on how to specify a key in set-up-account-and-git.md
If you already have multiple keys and don't want to use the default "id_rsa" name,
specify a mapping between an identity (a private key) and a remote host
in your .ssh/config.
-rw-r--r-- | tutorials/set-up-account-and-git.md | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tutorials/set-up-account-and-git.md b/tutorials/set-up-account-and-git.md index 7d4b531..1c875a2 100644 --- a/tutorials/set-up-account-and-git.md +++ b/tutorials/set-up-account-and-git.md @@ -29,6 +29,16 @@ public key is stored at `~/.ssh/id_rsa.pub`. Copy the contents of this file to your clipboard and paste it into the text field. Click "Add key" and your key will now be valid for pushing to git repositories. +### Specifying a Key + +If you already use multiple SSH keys, remember to specify which key to use +with `sr.ht` services. Edit `~/.ssh/config` and add an appropriate `Host` entry +that gives the path to the private key you wish to use: + + Host *sr.ht + IdentityFile ~/.ssh/srht.id_rsa + PreferredAuthentications publickey + ## Creating a git repository If you already have a git repository you want to push to git.sr.ht, you can skip |