summaryrefslogtreecommitdiff
path: root/_posts/2010-01-19-multiple-keys.markdown
diff options
context:
space:
mode:
authortekkub <tekkub@gmail.com>2010-10-30 16:21:55 -0600
committertekkub <tekkub@gmail.com>2010-10-30 16:21:55 -0600
commitc3877a436174f315a5529bf028bd577ca7b8e795 (patch)
tree685cca4f388b2ba298618a34b6a2c069916962bb /_posts/2010-01-19-multiple-keys.markdown
parent02c3846636307e031e7963ffac8d4b600d2ade94 (diff)
Embed code directly (plus highlighting!) instead of using gists
Diffstat (limited to '_posts/2010-01-19-multiple-keys.markdown')
-rw-r--r--_posts/2010-01-19-multiple-keys.markdown14
1 files changed, 13 insertions, 1 deletions
diff --git a/_posts/2010-01-19-multiple-keys.markdown b/_posts/2010-01-19-multiple-keys.markdown
index fc82d5f..bea4b6b 100644
--- a/_posts/2010-01-19-multiple-keys.markdown
+++ b/_posts/2010-01-19-multiple-keys.markdown
@@ -21,7 +21,19 @@ Configuring SSH
Once SSH has access to both keys, you need to tell it which key to use for which server. In most cases you can assume that SSH will fall back to `~/.ssh/id_rsa` by default, but we're going to force it anyway. To begin, open `~/.ssh/config` in your favorite editor.
-<script src="http://gist.github.com/281414.js?file=config"> </script>
+{% highlight bash %}
+# Default GitHub user (joe)
+Host github.com
+ HostName github.com
+ User git
+ IdentityFile /Users/joe/.ssh/id_rsa
+
+# Client user (client)
+Host github-client
+ HostName github.com
+ User git
+ IdentityFile /Users/joe/.ssh/id_rsa_client
+{% endhighlight %}
In short what this does is tells SSH to use the client key when connecting to the server github-client, which is really github.com.