{"id":75,"date":"2022-12-12T02:23:45","date_gmt":"2022-12-12T02:23:45","guid":{"rendered":"https:\/\/wp.hesling.com\/?p=75"},"modified":"2022-12-12T02:23:45","modified_gmt":"2022-12-12T02:23:45","slug":"yubikey-gpg-ssh-auth","status":"publish","type":"post","link":"http:\/\/wp.hesling.com\/?p=75","title":{"rendered":"Yubikey GPG SSH Auth"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-matthias-lohr wp-block-embed-matthias-lohr\"><div class=\"wp-block-embed__wrapper\">\n<blockquote class=\"wp-embedded-content\" data-secret=\"dzyFNOx3MT\"><a href=\"https:\/\/mlohr.com\/gpg-agent-for-ssh-authentication-update\/\">GPG Agent for SSH Authentication (Update)<\/a><\/blockquote><iframe loading=\"lazy\" class=\"wp-embedded-content\" sandbox=\"allow-scripts\" security=\"restricted\" style=\"position: absolute; clip: rect(1px, 1px, 1px, 1px);\" title=\"&#8220;GPG Agent for SSH Authentication (Update)&#8221; &#8212; Matthias Lohr\" src=\"https:\/\/mlohr.com\/gpg-agent-for-ssh-authentication-update\/embed\/#?secret=5VENtoPZSE#?secret=dzyFNOx3MT\" data-secret=\"dzyFNOx3MT\" width=\"580\" height=\"327\" frameborder=\"0\" marginwidth=\"0\" marginheight=\"0\" scrolling=\"no\"><\/iframe>\n<\/div><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/gist.github.com\/mcattarinussi\/834fc4b641ff4572018d0c665e5a94d3\">https:\/\/gist.github.com\/mcattarinussi\/834fc4b641ff4572018d0c665e5a94d3<\/a><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>echo \"use-agent\" >> ~\/.gnupg\/gpg.conf\necho \"enable-ssh-support\" >> ~\/.gnupg\/gpg-agent.conf\necho \"IdentityAgent \/run\/user\/1000\/gnupg\/S.gpg-agent.ssh\" >> ~\/.ssh\/config\n\n# Run the following to figure out what your SSH \"A\" key's Keygrip is:\ngpg --list-keys --with-keygrip\n\n# Add your key's keygrip to the sshcontrol file\necho A55719832AF939C531BACFFABB2A47B52FFBBF43 >> ~\/.gnupg\/sshcontrol\n\n# Once you add the key to the sshcontrol file, you should see a key available to ssh-add\nssh-add -l<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>https:\/\/gist.github.com\/mcattarinussi\/834fc4b641ff4572018d0c665e5a94d3<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-75","post","type-post","status-publish","format-standard","hentry","category-notes"],"_links":{"self":[{"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/posts\/75","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=75"}],"version-history":[{"count":1,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/posts\/75\/revisions"}],"predecessor-version":[{"id":76,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=\/wp\/v2\/posts\/75\/revisions\/76"}],"wp:attachment":[{"href":"http:\/\/wp.hesling.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=75"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=75"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/wp.hesling.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=75"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}