{"id":344,"date":"2016-08-28T20:30:24","date_gmt":"2016-08-28T11:30:24","guid":{"rendered":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=344"},"modified":"2016-08-28T20:30:24","modified_gmt":"2016-08-28T11:30:24","slug":"rpi3-setup-5","status":"publish","type":"post","link":"http:\/\/sunao-mita.pgw.jp\/blog\/?p=344","title":{"rendered":"\u30e9\u30ba\u30d1\u30a43\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7(5)\u3000(c) \u30a8\u30c7\u30a3\u30bf\u3068\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u306e\u6574\u5099"},"content":{"rendered":"<p>\u6b21\u306b\u5229\u7528\u304c\u591a\u3044 vim\u30a8\u30c7\u30a3\u30bf\u306e\u6574\u5099\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<div style=\"padding-left: 30px; border: solid 1px #880000;\">\nvim\u30a8\u30c7\u30a3\u30bf\u306e\u30d5\u30eb\u30bb\u30c3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre><code style=\"background: #ffeeee none repeat scroll 0% 0%;\">$ <span style=\"text-decoration: underline;\">sudo apt install vim<\/span><\/code><\/pre>\n<p>\u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30ab\u30e9\u30fc\u30ea\u30f3\u30b0\u3092\u6709\u52b9\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002<br \/>\n19\u884c1\u6841\u76ee\u306e<span style=\"text-decoration: underline;\">\u30b3\u30e1\u30f3\u30c8 <strong><span style=\"color: #0000ff; text-decoration: underline;\">&#8221; <\/span><\/strong><\/span>\u3092\u53d6\u308a\u9664\u304d\u307e\u3059\u3002<\/p>\n<pre><code style=\"background: #ffeeee none repeat scroll 0% 0%;\">$ <span style=\"text-decoration: underline;\">sudo vi \/etc\/vim\/vimrc<\/span><\/code>\n<code style=\"background: #eeffee none repeat scroll 0% 0%;\">......  ......\n\" Vim5 and later versions support syntax highlighting. Uncommenting the next\n\" line enables syntax highlighting by default.\n<strong><span style=\"color: #0000ff;\">syntax on<\/span><\/strong>\n\" If using a dark background within the editing area and syntax highlighting\n\" turn on this option as well\n....  ....<\/code>\n<\/pre>\n<\/div>\n<p>&nbsp;<br \/>\n\u6b21\u306b\u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u95a2\u9023\u306e\u6574\u5099\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<div style=\"padding-left: 30px; border: solid 1px #880000;\">\n\u5e38\u7528\u3057\u3066\u3044\u308b\u30ce\u30fc\u30c8PC\u304b\u3089\u306e ssh \u30ea\u30e2\u30fc\u30c8\u30ed\u30b0\u30a4\u30f3\u306e\u305f\u3081\u306b\u516c\u958b\u9375\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002<br \/>\n\u65b9\u6cd5\u306f\u3001\u30ea\u30e2\u30fc\u30c8\u3067<span style=\"text-decoration: underline;\">\u64cd\u4f5c\u3055\u308c\u308b\u30b5\u30fc\u30d0\u30fc<\/span>\u3067\u3042\u308b<strong>\u30e9\u30ba\u30d1\u30a4\u5074\u306epi\u30e6\u30fc\u30b6\u30fc<\/strong>\u306e <span style=\"color: #ff0000;\">.ssh\/authorized_key<\/span>\u306e\u4e2d\u306b\u3001\u30ea\u30e2\u30fc\u30c8\u3067<span style=\"text-decoration: underline;\">\u64cd\u4f5c\u3059\u308b\u5074(\u5e38\u7528\u3057\u3066\u3044\u308b\u30ce\u30fc\u30c8PC)<\/span>\u306e<strong>\u5e38\u7528\u30e6\u30fc\u30b6\u30fc<\/strong>\u306e<span style=\"color: #ff0000;\">\u516c\u958b\u9375<\/span>\u3092\u8ffd\u52a0\u3057\u307e\u3059\u3002<\/p>\n<pre><code style=\"background: #ffeeee none repeat scroll 0% 0%;\">$ <span style=\"text-decoration: underline;\">cat .ssh\/id_rsa.pub<\/span><\/code>   ....(\u5e38\u7528\u3057\u3066\u3044\u308b\u30ce\u30fc\u30c8PC\u5074)\n<code style=\"background: #eeffee none repeat scroll 0% 0%;\">\nssh-rsa AAAAB3NzaC1......AABAQDGfuahG9gbZlZk.........UfIO4hqf7uQJif\/c1FPGwQYkGT7VAiksrtyBTOSEe\/iWLfeVwjlS..........AkyAVJZKp0p\/g+zO............9yF5+b6K9KP+mEXC.......w7HDsaif user@note-PC<\/code><\/pre>\n<p>\u8ffd\u52a0\u3059\u308b\u65b9\u6cd5\u306b\u306f\u8272\u3005\u306a\u65b9\u6cd5\u304c\u8003\u3048\u3089\u308c\u307e\u3059\u304c\u3001\u6587\u5b57\u5217\u3092\u30b3\u30d4\u30fc\u3057\u3066 vi\u30a8\u30c7\u30a3\u30bf\u3067\u5358\u7d14\u306b\u8ffd\u52a0\u7de8\u96c6\u3059\u308b\u65b9\u6cd5\u3092\u793a\u3057\u307e\u3059\u3002<\/p>\n<pre><code style=\"background: #ffeeee none repeat scroll 0% 0%;\">$ <span style=\"text-decoration: underline;\">vi .ssh\/authorized_key<\/span><\/code>   ....(\u64cd\u4f5c\u3055\u308c\u308b\u5074\u306e\u30e9\u30ba\u30d1\u30a4)\n<code style=\"background: #eeffee none repeat scroll 0% 0%;\">......    ......\n<span style=\"color: #333399;\">ssh-rsa AAAAB3NzaC1......AABAQDGfuahG9gbZlZk.........UfIO4hqf7uQJif\/c1FPGwQYkGT7VAiksrtyBTOSEe\/iWLfeVwjlS..........AkyAVJZKp0p\/g+zO............9yF5+b6K9KP+mEXC.......w7HDsaif user@note-PC<\/span>\n....  ..   .....<\/code><\/pre>\n<\/div>\n<p>&nbsp;<br \/>\n\u305d\u3057\u3066\u6b21\u306b\u52d5\u4f5c\u691c\u8a3c\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<div style=\"padding-left: 30px; border: solid 1px #880000;\">\n\u516c\u958b\u9375\u304c\u8ffd\u52a0\u3067\u304d\u305f\u306a\u3089\u3001\u516c\u958b\u9375\u3068\u79d8\u5bc6\u9375\u3067\u8a8d\u8a3c\u304c\u884c\u308f\u308c\u308b\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n<pre><code style=\"background: #ffeeee none repeat scroll 0% 0%;\">$ <span style=\"text-decoration: underline;\">ssh pi@raspberrypi3<\/span><\/code>\n<span style=\"color: #808000;\">The programs included with the Debian GNU\/Linux system are free software;\nthe exact distribution terms for each program are described in the\nindividual files in \/usr\/share\/doc\/*\/copyright.\nDebian GNU\/Linux comes with ABSOLUTELY NO WARRANTY, to the extent\npermitted by applicable law.\nLast login: Sun Aug 28 20:21:10 2016 from note-PC\n$<\/span><\/pre>\n<p>ssh\u3067\u306e\u516c\u958b\u9375\u8a8d\u8a3c\u304c\u3067\u304d\u305f\u306a\u3089\u3001\u30cd\u30c3\u30c8\u4e0a\u304b\u3089\u306e\u30a2\u30bf\u30c3\u30af\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3067\u306e\u4e0d\u6b63\u30ed\u30b0\u30a4\u30f3\u3092\u9632\u3050\u305f\u3081\u306b\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3092\u7981\u6b62\u3057\u307e\u3059\u3002<\/p>\n<pre><code style=\"background: #ffeeee none repeat scroll 0% 0%;\">$ <span style=\"text-decoration: underline;\">sudo vi \/etc\/ssh\/sshd_config<\/span><\/code>\n<code style=\"background: #eeffee none repeat scroll 0% 0%;\">....  ..  .....\n# Change to no to disable tunnelled clear text passwords\n<strong><span style=\"color: #0000ff;\">PasswordAuthentication no<\/span><\/strong>\n.......    .....<\/code><\/pre>\n<p>\u516c\u958b\u9375\u3068\u79d8\u5bc6\u9375\u306e\u30da\u30a2\u3067\u306a\u3051\u308c\u3070\u63a5\u7d9a\u3067\u304d\u306a\u3044\u3053\u3068\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002 (publickey)<\/p>\n<pre><code style=\"background: #ffeeee none repeat scroll 0% 0%;\">$ <span style=\"text-decoration: underline;\">ssh root@raspberrypi3<\/span><\/code>\n<span style=\"color: #808000;\">Permission denied <strong>(publickey)<\/strong>.<\/span>\n<\/pre>\n<\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6b21\u306b\u5229\u7528\u304c\u591a\u3044 vim\u30a8\u30c7\u30a3\u30bf\u306e\u6574\u5099\u3092\u884c\u3044\u307e\u3059\u3002 vim\u30a8\u30c7\u30a3\u30bf\u306e\u30d5\u30eb\u30bb\u30c3\u30c8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 $ sudo apt install vim \u30b7\u30f3\u30bf\u30c3\u30af\u30b9\u30ab\u30e9\u30fc\u30ea\u30f3\u30b0\u3092\u6709\u52b9\u306b\u3057\u3066\u304a\u304d\u307e\u3059\u3002 19\u884c1\u6841\u76ee\u306e\u30b3\u30e1\u30f3\u30c8 &#038; &hellip; <a href=\"http:\/\/sunao-mita.pgw.jp\/blog\/?p=344\" class=\"more-link\">\u7d9a\u304d\u3092\u8aad\u3080 <span class=\"screen-reader-text\">\u30e9\u30ba\u30d1\u30a43\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7(5)\u3000(c) \u30a8\u30c7\u30a3\u30bf\u3068\u30ea\u30e2\u30fc\u30c8\u63a5\u7d9a\u306e\u6574\u5099<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/344"}],"collection":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=344"}],"version-history":[{"count":0,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/344\/revisions"}],"wp:attachment":[{"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=344"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=344"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/sunao-mita.pgw.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}