{"id":2387,"date":"2022-12-24T12:24:27","date_gmt":"2022-12-24T03:24:27","guid":{"rendered":"https:\/\/www.agile-software.site\/?p=2387"},"modified":"2022-12-24T12:24:28","modified_gmt":"2022-12-24T03:24:28","slug":"github%e3%81%a7ssh%e6%8e%a5%e7%b6%9a%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/agile-software.net\/?p=2387","title":{"rendered":"GitHub\u3067ssh\u63a5\u7d9a\u3059\u308b"},"content":{"rendered":"\n<p>Github\u3067\u4f5c\u6210\u3057\u305f\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3068VSCode\u4e0a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u95a2\u9023\u4ed8\u3051\u308b\u969b\u306b\u66f8\u304d\u30a8\u30e9\u30fc\u304c\u3067\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>git@github.com: Permission denied (publickey).\nfatal: Could not read from remote repository.\n\nPlease make sure you have the correct access rights\nand the repository exists.<\/code><\/pre><\/div>\n\n\n\n<p>\u3053\u308c\u306fVSCode\u304b\u3089Github\u306bssh\u63a5\u7d9a\u3059\u308b\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516c\u958b\u9375\u30fb\u79d8\u5bc6\u9375\u306e\u4f5c\u6210<\/h2>\n\n\n\n<p>\u9375\u3092\u5165\u308c\u308b\u30d5\u30a9\u30eb\u30c0\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>cd ~\/.ssh<\/code><\/pre><\/div>\n\n\n\n<p>\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u9375\u3092\u751f\u6210\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>ssh-keygen -t rsa<\/code><\/pre><\/div>\n\n\n\n<p>id_rsa\u3068id_rsa.pub\u306e2\u3064\u306e\u9375\u304c\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u516c\u958b\u9375\u3092Github\u306b\u30a2\u30c3\u30d7\u3059\u308b<\/h2>\n\n\n\n<p>SSH and GPG keys\u8a2d\u5b9a\u306b\u304a\u3044\u3066New SSH keys\u3092\u30af\u30ea\u30c3\u30af\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"792\" height=\"490\" src=\"https:\/\/www.agile-software.site\/wp-content\/uploads\/2022\/12\/github_ssh.png\" alt=\"\" class=\"wp-image-2388\"\/><\/figure>\n\n\n\n<p>Key\u306e\u3068\u3053\u308d\u306b\u4f5c\u6210\u3055\u308c\u305fid_rsa.pub\u30d5\u30a1\u30a4\u30eb\u5185\u306e\u516c\u958b\u9375\u3092\u8cbc\u308a\u4ed8\u3051\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u63a5\u7d9a\u306e\u78ba\u8a8d<\/h2>\n\n\n\n<p>VSCode\u304b\u3089Github\u306b\u63a5\u7d9a\u3067\u304d\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>ssh -T git@github.com<\/code><\/pre><\/div>\n\n\n\n<p>\u4e0b\u8a18\u306e\u3088\u3046\u306a\u30b3\u30de\u30f3\u30c9\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u6210\u529f\u3067\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>Hi \u3007\u3007\u3007\u3007\u3007\u3007! You&#39;ve successfully authenticated, but GitHub does not provide shell access.<\/code><\/pre><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Github\u3067\u4f5c\u6210\u3057\u305f\u30ea\u30e2\u30fc\u30c8\u30ea\u30dd\u30b8\u30c8\u30ea\u3068VSCode\u4e0a\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u95a2\u9023\u4ed8\u3051\u308b\u969b\u306b\u66f8\u304d\u30a8\u30e9\u30fc\u304c\u3067\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002 \u3053\u308c\u306fVSCode\u304b\u3089Github\u306bssh\u63a5\u7d9a\u3059\u308b\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u3066\u3044\u306a\u3044\u305f\u3081\u8868\u793a\u3055\u308c\u3066\u3044\u308b\u53ef\u80fd\u6027\u304c\u3042\u308a<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jin_ogp_image_url":"","_jin_last_featured_id":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-2387","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2387","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2387"}],"version-history":[{"count":1,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2387\/revisions"}],"predecessor-version":[{"id":2389,"href":"https:\/\/agile-software.net\/index.php?rest_route=\/wp\/v2\/posts\/2387\/revisions\/2389"}],"wp:attachment":[{"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/agile-software.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}