Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775

Warning: Cannot modify header information - headers already sent by (output started at /home/cra-log/www/index.php:1) in /home/cra-log/www/site-admin-wp/wp-includes/rest-api/class-wp-rest-server.php on line 1775
{"id":2176,"date":"2022-04-05T22:27:30","date_gmt":"2022-04-05T13:27:30","guid":{"rendered":"https:\/\/craft-gogo.com\/?p=2176"},"modified":"2022-04-05T22:27:34","modified_gmt":"2022-04-05T13:27:34","slug":"raspberry-pi-key","status":"publish","type":"post","link":"https:\/\/craft-gogo.com\/raspberry-pi-key\/","title":{"rendered":"Raspberry Pi\u306eSSH\u63a5\u7d9a\u3092\u9375\u8a8d\u8a3c\u65b9\u5f0f\u306b\u3057\u3066\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u9ad8\u3081\u3088\u3046\uff01"},"content":{"rendered":"\n

Raspberry Pi\u306eSSH\u63a5\u7d9a\u3001\u307e\u3060\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u304b\uff1f<\/p>\n\n\n\n

\u5b89\u5168\u306bSSH\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001\u516c\u958b\u9375\u8a8d\u8a3c\u65b9\u5f0f\u306b\u3059\u308b\u3079\u304d\u3067\u3059\u3002<\/span><\/strong><\/p>\n\n\n\n

\u4eca\u56de\u3001Raspberry Pi\u306eSSH\u63a5\u7d9a\u3092\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u304b\u3089\u516c\u958b\u9375\u8a8d\u8a3c\u306b\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u307e\u305f\u3001\u66f4\u306b\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3092\u5f37\u5316\u3059\u308b\u305f\u3081\u3001\u30dd\u30fc\u30c8\u756a\u53f7\u3082\u5909\u66f4\u3057\u3061\u3083\u3044\u307e\u3057\u3087\u3046\uff01<\/p>\n\n\n\n

TeraTerm\u3067\u516c\u958b\u9375\u3001\u79d8\u5bc6\u9375\u306e\u751f\u6210<\/h2>\n\n\n\n

\u516c\u958b\u9375\u3001\u79d8\u5bc6\u9375\u3092\u751f\u6210\u3059\u308b\u65b9\u6cd5\u306f\u3044\u304f\u3064\u304b\u3042\u308a\u307e\u3059\u304c\u3001\u4eca\u56de\u306f\u79c1\u304c\u7c21\u5358\u3060\u3068\u601d\u3046TeraTerm\u3092\u4f7f\u3063\u305f\u65b9\u6cd5\u3092\u7d39\u4ecb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

TeraTerm\u30a6\u30a3\u30f3\u30c9\u30a6\u306e\u300c\u8a2d\u5b9a\u300d->\u300cSSH\u9375\u751f\u6210\u300d\u3092\u9078\u629e\u3059\u308b\u3068\u6b21\u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

\u9375\u306e\u7a2e\u985e\u306fRSA\u3092\u9078\u629e\u3057\u3001\u751f\u6210\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u6b21\u306b\u9375\u306e\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u3092\u5165\u529b\u3057\u3001\u300c\u516c\u958b\u9375\u306e\u4fdd\u5b58\u300d\u3001\u300c\u79d8\u5bc6\u9375\u306e\u4fdd\u5b58\u300d\u30dc\u30bf\u30f3\u3092\u62bc\u3057\u3001\u9375\u30d5\u30a1\u30a4\u30eb\u3092\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u3053\u308c\u3060\u3051\u3067\u516c\u958b\u9375\u3001\u79d8\u5bc6\u9375\u306e\u751f\u6210\u306f\u5b8c\u4e86\u3067\u3059\uff01\u7c21\u5358\u3067\u3059\u306d\u3002<\/p>\n\n\n\n

\u516c\u958b\u9375\u3092Raspberry Pi\u306b\u767b\u9332\u3059\u308b<\/h2>\n\n\n\n

\u6b21\u306b\u516c\u958b\u9375\u3092Raspberry Pi\u306b\u4fdd\u5b58\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u4fdd\u5b58\u306fTeraTerm\u306eSCP\u8ee2\u9001\u6a5f\u80fd\u3092\u4f7f\u3046\u3068\u697d\u3061\u3093\u3067\u3059\u3002<\/p>\n\n\n\n

SCP\u8ee2\u9001\u6a5f\u80fd\u306fTeraTerm\u30a6\u30a3\u30f3\u30c9\u30a6\u306b\u516c\u958b\u9375\u30d5\u30a1\u30a4\u30eb\u3092\u30c9\u30e9\u30c3\u30b0&\u30c9\u30ed\u30c3\u30d7\u3059\u308b\u3060\u3051\u3002<\/span><\/strong><\/p>\n\n\n\n

\u4ee5\u4e0b\u306e\u753b\u9762\u304c\u73fe\u308c\u307e\u3059\u306e\u3067OK\u3092\u62bc\u3057\u307e\u3057\u3087\u3046\u3002Raspberry Pi\u306e\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u516c\u958b\u9375\u30d5\u30a1\u30a4\u30eb\u304c\u4fdd\u5b58\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u516c\u958b\u9375\u3092Raspberry Pi\u306b\u4fdd\u5b58\u3057\u305f\u3089\u540d\u524d\u3092authorized_keys\u306b\u5909\u66f4\u3057.ssh\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306b\u79fb\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

$ mv id_rsa.pub .ssh\/authorized_keys<\/code><\/pre><\/div>\n\n\n\n

\u6240\u6709\u8005\u304cauthorized_keys\u3092\u5b9f\u884c\u51fa\u6765\u308b\u3088\u3046.ssh\u306e\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u5909\u66f4\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ chmod 700 .ssh<\/code><\/pre><\/div>\n\n\n\n

SSH\u306e\u8a2d\u5b9a\u5909\u66f4<\/h2>\n\n\n\n

SSH\u306e\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30ebsshd_config\u3092\u5909\u66f4\u3057\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u304b\u3089\u516c\u958b\u9375\u8a8d\u8a3c\u306b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u307e\u305a\u3001\u5ff5\u306e\u305f\u3081sshd_config\u3092\u30d0\u30c3\u30af\u30a2\u30c3\u30d7\u3057\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n\n\n\n

$ cp \/etc\/ssh\/sshd_config \/etc\/ssh\/sshd_config_backup<\/code><\/pre><\/div>\n\n\n\n

\u7d9a\u3044\u3066sshd_config\u306e\u30d5\u30a1\u30a4\u30eb\u66f8\u304d\u63db\u3048\u4f5c\u696d\u3067\u3059\u3002<\/p>\n\n\n\n

$ sudo nano \/etc\/ssh\/sshd_config<\/code><\/pre><\/div>\n\n\n\n

\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u30dd\u30fc\u30c8\u756a\u53f7\u5909\u66f4\u3001\u516c\u958b\u9375\u30d5\u30a1\u30a4\u30eb\u306e\u6307\u5b9a\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3092\u7121\u52b9\u5316\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

#Port 22\nPort XX \n\nAuthorizedKeysFile %h\/.ssh\/authorized_keys\n\n#PasswordAuthentication yes\nPasswordAuthentication no<\/code><\/pre><\/div>\n\n\n\n

\u3053\u308c\u3067\u516c\u958b\u9375\u8a8d\u8a3c\u306b\u5909\u66f4\u3055\u308c\u305f\u306f\u305a\u3067\u3059\u3002<\/p>\n\n\n\n

SSH\u30b5\u30fc\u30d0\u30fc\u518d\u8d77\u52d5<\/h2>\n\n\n\n

\u6700\u5f8c\u306bSSH\u30b5\u30fc\u30d0\u30fc\u3092\u518d\u8d77\u52d5\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n\n\n\n

$ sudo \/etc\/init.d\/ssh restart<\/code><\/pre><\/div>\n\n\n\n

TeraTerm\u3067SSH\u63a5\u7d9a<\/h2>\n\n\n\n

\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u304b\u3089\u9375\u8a8d\u8a3c\u306b\u5909\u66f4\u3057\u305f\u306e\u3067\u3001TeraTerm\u306eSSH\u63a5\u7d9a\u65b9\u6cd5\u304c\u5909\u308f\u308a\u307e\u3059\u3002<\/p>\n\n\n\n

\u307e\u305a\u3001TCP\u30dd\u30fc\u30c8\u6b04\u306b\u8a2d\u5b9a\u3057\u305f\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

\u6b21\u306e\u8868\u793a\u306b\u9032\u3093\u3060\u3089\u30d1\u30b9\u30d5\u30ec\u30fc\u30ba\u306b\u9375\u751f\u6210\u6642\u306b\u8a2d\u5b9a\u3057\u305f\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u5165\u529b\u3057\u307e\u3059\u3002<\/p>\n\n\n\n

\u305d\u3057\u3066\u3001\u79d8\u5bc6\u9375\u3092\u6307\u5b9a\u3059\u308b\u6d41\u308c\u3067\u3059\u3002<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

SSH\u63a5\u7d9a\u51fa\u6765\u305f\u3067\u3057\u3087\u3046\u304b\uff1f<\/p>\n\n\n\n

\u307e\u3068\u3081<\/h2>\n\n\n\n

Raspberry Pi\u306eSSH\u63a5\u7d9a\u3092\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u304b\u3089\u516c\u958b\u9375\u8a8d\u8a3c\u306b\u5909\u66f4\u3059\u308b\u65b9\u6cd5\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n

\u5b89\u5168\u306bSSH\u63a5\u7d9a\u3059\u308b\u305f\u3081\u306b\u3001\u516c\u958b\u9375\u8a8d\u8a3c\u65b9\u5f0f\u306b\u3057\u307e\u3057\u3087\u3046\uff01<\/span><\/strong><\/p>\n\n\n\n

\u6700\u5f8c\u307e\u3067\u304a\u8aad\u307f\u9802\u304d\u3042\u308a\u304c\u3068\u3046\u3054\u3056\u3044\u307e\u3057\u305f\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

Raspberry Pi\u306eSSH\u63a5\u7d9a\u3001\u307e\u3060\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u306b\u306a\u3063\u3066\u3044\u307e\u305b\u3093\u304b\uff1f \u5b89\u5168\u306bSSH\u63a5\u7d9a\u3059\u308b\u306b\u306f\u3001\u516c\u958b\u9375\u8a8d\u8a3c\u65b9\u5f0f\u306b\u3059\u308b\u3079\u304d\u3067\u3059\u3002 \u4eca\u56de\u3001Raspberry Pi\u306eSSH\u63a5\u7d9a\u3092\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u304b\u3089\u516c\u958b\u9375\u8a8d\u8a3c\u306b\u5909\u66f4\u3059\u308b\u65b9 […]<\/p>\n","protected":false},"author":1,"featured_media":12,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/2176"}],"collection":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/comments?post=2176"}],"version-history":[{"count":7,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/2176\/revisions"}],"predecessor-version":[{"id":2189,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/posts\/2176\/revisions\/2189"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media\/12"}],"wp:attachment":[{"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/media?parent=2176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/categories?post=2176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/craft-gogo.com\/wp-json\/wp\/v2\/tags?post=2176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}