{"id":555,"date":"2021-09-05T17:21:09","date_gmt":"2021-09-05T08:21:09","guid":{"rendered":"https:\/\/roroing.net\/?p=555"},"modified":"2021-09-05T17:21:43","modified_gmt":"2021-09-05T08:21:43","slug":"linux%e3%81%a7%e9%8d%b5%e8%aa%8d%e8%a8%bc%e3%81%ae%e8%a8%ad%e5%ae%9a%e3%82%92%e4%b8%80%e5%9b%9e%e3%81%a7%e7%b5%82%e3%82%8f%e3%82%89%e3%81%9b%e3%82%8b%e3%82%b9%e3%82%af%e3%83%aa%e3%83%97%e3%83%88","status":"publish","type":"post","link":"https:\/\/roroing.net\/?p=555","title":{"rendered":"Linux\u3067\u9375\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u3092\u4e00\u56de\u3067\u7d42\u308f\u3089\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\uff08CENTOS\uff09"},"content":{"rendered":"\n<p>\u30b5\u30fc\u30d0\u30fc\u7acb\u3066\u308b\u305f\u3073\u306b\u9375\u8a8d\u8a3c\u8a2d\u5b9a\u3059\u308b\u306e\u9762\u5012\u3060\u304b\u3089\u306d\u3002<br>ssh-keygen\u6642\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u805e\u304b\u308c\u305a\u3001\u6700\u5f8c\u306b\u79d8\u5bc6\u9375\u3092<br>\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002<\/p>\n\n\n\n<p>makekey.sh<\/p>\n\n\n\n<p><code>yum -y install openssh-server<br>ssh-keygen -N \"\" -f ~\/.ssh\/id_rsa<br>mv ~\/.ssh\/id_rsa.pub ~\/.ssh\/authorized_keys<br>chmod 600 ~\/.ssh\/authorized_keys<br>sed -i 's\/^PubkeyAuthentication.*$\/PubkeyAuthentication yes\/' \/etc\/ssh\/sshd_config<br>sed -i 's\/PasswordAuthentication yes\/PasswordAuthentication no\/' \/etc\/ssh\/sshd_config<br>systemctl restart sshd<br>cat ~\/.ssh\/id_rsa<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u30b5\u30fc\u30d0\u30fc\u7acb\u3066\u308b\u305f\u3073\u306b\u9375\u8a8d\u8a3c\u8a2d\u5b9a\u3059\u308b\u306e\u9762\u5012\u3060\u304b\u3089\u306d\u3002ssh-keygen\u6642\u306b\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u805e\u304b\u308c\u305a\u3001\u6700\u5f8c\u306b\u79d8\u5bc6\u9375\u3092\u8868\u793a\u3057\u3066\u304f\u308c\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u3059\u3002 makekey.sh yum -y install openssh-serve <a href=\"https:\/\/roroing.net\/?p=555\" class=\"more-link\">...<span class=\"screen-reader-text\"> \"Linux\u3067\u9375\u8a8d\u8a3c\u306e\u8a2d\u5b9a\u3092\u4e00\u56de\u3067\u7d42\u308f\u3089\u305b\u308b\u30b9\u30af\u30ea\u30d7\u30c8\uff08CENTOS\uff09\"<\/span> \u3092\u7d9a\u3051\u3066\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[14],"tags":[],"class_list":{"0":"post-555","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-14","7":"h-entry","8":"hentry","9":"h-as-article"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/posts\/555","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/roroing.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=555"}],"version-history":[{"count":2,"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/posts\/555\/revisions"}],"predecessor-version":[{"id":558,"href":"https:\/\/roroing.net\/index.php?rest_route=\/wp\/v2\/posts\/555\/revisions\/558"}],"wp:attachment":[{"href":"https:\/\/roroing.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=555"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/roroing.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=555"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/roroing.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=555"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}