{"id":7439,"date":"2018-03-08T14:57:04","date_gmt":"2018-03-08T14:57:04","guid":{"rendered":"http:\/\/blog.bachi.net\/?p=7439"},"modified":"2018-09-23T10:18:13","modified_gmt":"2018-09-23T10:18:13","slug":"ssh-key-github-access","status":"publish","type":"post","link":"https:\/\/blog.bachi.net\/?p=7439","title":{"rendered":"SSH Key \/ Github Access"},"content":{"rendered":"<p><a href=\"https:\/\/stackoverflow.com\/questions\/2419566\/best-way-to-use-multiple-ssh-private-keys-on-one-client\">Best way to use multiple SSH private keys on one client<\/a><\/p>\n<p><a href=\"https:\/\/help.github.com\/articles\/generating-a-new-ssh-key-and-adding-it-to-the-ssh-agent\/\">Generating a new SSH key and adding it to the ssh-agent<\/a><\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ ls -la ~\/.ssh\r\ntotal 12\r\ndrwx------  2 andreas andreas 4096 Aug 22 13:16 .\r\ndrwxr-xr-x 46 andreas andreas 4096 Sep 22 21:12 ..\r\n-rw-r--r--  1 andreas andreas 1772 Sep 23 11:54 known_hosts\r\n\r\n$ ssh-keygen -t rsa -b 4096 -C &quot;your_email@example.com&quot;\r\n<\/pre>\n<pre class=\"brush: plain; title: ~\/.ssh\/config; notranslate\" title=\"~\/.ssh\/config\">\r\nIdentityFile ~\/.ssh\/id_rsa_key1\r\nIdentityFile ~\/.ssh\/id_rsa_key2\r\n<\/pre>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n$ git config --global user.name &quot;John Doe&quot;\r\n$ git config --global user.email johndoe@example.com\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Best way to use multiple SSH private keys on one client Generating a new SSH key and adding it to the ssh-agent $ ls -la ~\/.ssh total 12 drwx&#8212;&#8212; 2 andreas andreas 4096 Aug 22 13:16 . drwxr-xr-x 46 andreas andreas 4096 Sep 22 21:12 .. -rw-r&#8211;r&#8211; 1 andreas andreas 1772 Sep 23 11:54 known_hosts [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7439","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7439"}],"version-history":[{"count":5,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7439\/revisions"}],"predecessor-version":[{"id":8400,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=\/wp\/v2\/posts\/7439\/revisions\/8400"}],"wp:attachment":[{"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.bachi.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}