{"id":249,"date":"2016-07-31T21:29:02","date_gmt":"2016-07-31T12:29:02","guid":{"rendered":"https:\/\/blog.daichang.me\/?p=249"},"modified":"2016-07-31T21:29:02","modified_gmt":"2016-07-31T12:29:02","slug":"ssh-copy-id-%e3%81%a7%e3%83%aa%e3%83%a2%e3%83%bc%e3%83%88%e3%83%9b%e3%82%b9%e3%83%88%e3%81%b8%e5%85%ac%e9%96%8b%e9%8d%b5%e7%99%bb%e9%8c%b2","status":"publish","type":"post","link":"https:\/\/blog.daichang.me\/?p=249","title":{"rendered":"ssh-copy-id \u3067\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u3078\u516c\u958b\u9375\u767b\u9332"},"content":{"rendered":"<p>Twitter \u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3067 <code>ssh-copy-id<\/code> \u3092\u59cb\u3081\u3066\u77e5\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3092\u3002<br \/>\n<!--more--><\/p>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001\u65e2\u306b\u751f\u6210\u6e08\u307f\u306e\u624b\u5143\u306b\u3042\u308b\u516c\u958b\u9375\u3092\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u3078\u767b\u9332\u3059\u308b\u969b\u306b\u4f7f\u3046\u3082\u306e\u3067\u3059\u3002<br \/>\n\u7d50\u69cb\u4fbf\u5229\u306a\u306e\u3067\u3001\u91cd\u5b9d\u3057\u3066\u3044\u307e\u3059\u304c\u3001Mac OS X \u306e\u5834\u5408\u306f\u3001\u6a19\u6e96\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u30b3\u30de\u30f3\u30c9\u3068\u306a\u308b\u305f\u3081\u3001<a href=\"http:\/\/brew.sh\/index_ja.html\">Homebrew<\/a> \u7b49\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u306a\u304a\u3001Homebrew \u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u5834\u5408\u306f\u3001\u4e0b\u8a18\u306e\u4e00\u884c\u3067\u6e08\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint linenums\">\n% brew install ssh-copy-id\n<\/pre>\n<p>\u306a\u304a\u3001\u809d\u5fc3\u306e <code>ssh-copy-id<\/code> \u306e\u4f7f\u3044\u65b9\u3067\u3059\u304c\u3001\u4e0b\u8a18\u3068\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"prettyprint linenums\">\n% ssh-copy-id -i ~&#47;.ssh&#47;id_ecdsa.pub host.example.jp \n<\/pre>\n<p>Unix\/Linux \u3067 SSH \u3092\u5b9f\u884c\u3057\u3066\u3044\u308b\u4eba\u306b\u306f\u8aac\u660e\u4e0d\u8981\u3067\u3059\u304c\u3001<code>-i<\/code> \u306e\u5f8c\u3067\u767b\u9332\u5bfe\u8c61\u3068\u3059\u308b\u516c\u958b\u9375\u3092\u6307\u5b9a\u3057\u307e\u3059\u3002\u9593\u9055\u3063\u3066\u3082\u79d8\u5bc6\u9375\u3092\u6307\u5b9a\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<br \/>\n\u6b21\u306b\u5bfe\u8c61\u3068\u3059\u308b\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u30e6\u30fc\u30b6\u540d\u304c\u73fe\u5728\u306e\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u3068\u7570\u306a\u308b\u5834\u5408\u306f <code><username>@<hostname><\/code> \u3068\u3057\u3066\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u5b9f\u884c\u3059\u308b\u3068\u30d1\u30b9\u30ef\u30fc\u30c9\u304c\u805e\u304b\u308c\u308b\u306e\u3067\u3001\u5165\u529b\u3059\u308b\u3068\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<li>\u59cb\u3081\u3066\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5834\u5408<\/li>\n<pre class=\"prettyprint linenums\">\n% ssh-copy-id -i ~&#47;.ssh&#47;id_ecdsa.pub host.example.jp  \nThe authenticity of host &#39;host.example.jp (192.0.2.1)&#39; can&#39;t be established.\nECDSA key fingerprint is e2:dd:3d:1b:9a:12:59:0c:a2:10:1a:89:23:32:51:7c.\nAre you sure you want to continue connecting (yes&#47;no)? yes\nWarning: Permanently added &#39;host.example.jp&#39; (ECDSA) to the list of known hosts.\nuser@host.example.jp&#39;s password: \nNow try logging into the machine, with &#34;ssh &#39;host.example.jp&#39;&#34;, and check in:\n\n  ~&#47;.ssh&#47;authorized_keys\n\nto make sure we haven&#39;t added extra keys that you weren&#39;t expecting.\n\n<\/pre>\n<li>2\u56de\u76ee\u4ee5\u964d\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u5834\u5408<\/li>\n<pre class=\"prettyprint linenums\">\n% ssh-copy-id -i ~&#47;.ssh&#47;id_rsa.pub host.example.jp  \nNow try logging into the machine, with &#34;ssh &#39;host.example.jp&#39;&#34;, and check in:\n\n  ~&#47;.ssh&#47;authorized_keys\n\nto make sure we haven&#39;t added extra keys that you weren&#39;t expecting.\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Twitter \u306e\u30bf\u30a4\u30e0\u30e9\u30a4\u30f3\u3067 ssh-copy-id \u3092\u59cb\u3081\u3066\u77e5\u3063\u305f\u306e\u3067\u3001\u30e1\u30e2\u3092\u3002 [&#8230;]<\/p>\n<p><a class=\"btn btn-secondary understrap-read-more-link\" href=\"https:\/\/blog.daichang.me\/?p=249\">\u7d9a\u304d\u3092\u8aad\u3080&#8230;<span class=\"screen-reader-text\"> from ssh-copy-id \u3067\u30ea\u30e2\u30fc\u30c8\u30db\u30b9\u30c8\u3078\u516c\u958b\u9375\u767b\u9332<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[14,15,18,25],"class_list":["post-249","post","type-post","status-publish","format-standard","hentry","category-tech","tag-linux","tag-mac","tag-raspbian","tag-ubuntu"],"_links":{"self":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts\/249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=249"}],"version-history":[{"count":0,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=\/wp\/v2\/posts\/249\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.daichang.me\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}