aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tutorials/set-up-account-and-git.md10
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