From 6675d4742a6ff256fc58fd733464e2bb4f5faed5 Mon Sep 17 00:00:00 2001 From: Rick Cogley Date: Fri, 4 Jan 2019 16:40:37 +0900 Subject: 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. --- tutorials/set-up-account-and-git.md | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'tutorials/set-up-account-and-git.md') 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 -- cgit