{"id":176,"date":"2013-04-09T23:27:52","date_gmt":"2013-04-09T14:27:52","guid":{"rendered":"http:\/\/darkgray.homelinux.com\/modules\/xpress\/?p=176"},"modified":"2013-04-09T23:27:52","modified_gmt":"2013-04-09T14:27:52","slug":"ssh%e3%81%a7%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3","status":"publish","type":"post","link":"https:\/\/darkgray.homelinux.com\/blog\/?p=176","title":{"rendered":"ssh\u3067\u30ed\u30b0\u30a4\u30f3"},"content":{"rendered":"<p>ssh\u306f\u6982\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u3088\u308b\u30ed\u30b0\u30a4\u30f3\u306f\u51fa\u6765\u3066\u305f\u3093\u3060\u3051\u3069\u516c\u958b\/\u79d8\u5bc6\u9375\u306b\u3088\u308b\u30ed\u30b0\u30a4\u30f3\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3089\u898b\u4e8b\u306b\u306f\u307e\u3063\u3066\u3057\u307e\u3063\u3066\u306a\u304b\u306a\u304b\u4e0a\u624b\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304f\u3002<br \/>\n<!--more--><br \/>\n\u7d50\u679c\u304b\u3089\u5148\u306b\u66f8\u3044\u3066\u304a\u304f\u3068\u3000Selinux\u95a2\u9023\u3067\u62d2\u5426\u3089\u308c\u3066\u3044\u305f\u6a21\u69d8\u3002<\/p>\n<p>OS:Cent-OS Ver6.4\uff0bOpen SSH\u3067Selinux\u3092\u6709\u52b9\u306b\u3057\u305f\u307e\u307e\u3067\u9375\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u308b\u30ed\u30b0\u30a4\u30f3\u3092\u6210\u529f\u3055\u305b\u308b\u65b9\u6cd5\u306f\u4ee5\u4e0b\u306e\u901a\u308a\u3002<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\u3067\u30b5\u30fc\u30d0\u30fc\u5074\u3067\u9375\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002\uff08.ssh\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3082\u7121\u3044\u72b6\u614b\u304b\u3089\u59cb\u3081\u308b\u3002\uff09<br \/>\n#\u3000ssh-keygen -t rsa <\/p>\n<p>Home_Dir\/.ssh\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u4e0b\u306b\u4ee5\u4e0b\u306e\uff12\u30d5\u30a1\u30a4\u30eb\u304c\u4f5c\u6210\u3055\u308c\u308b\u3002<br \/>\nid_rsa<br \/>\nid_rsa.pub<\/p>\n<p>id_rsa.pub\u3092authorized_keys\u306bmv\u3057\u3066\u66f4\u306b\u30d1\u30fc\u30df\u30c3\u30b7\u30e7\u30f3\u3092\u81ea\u5206\u4ee5\u5916\u304b\u3089\u306f\u898b\u3048\u306a\u3044\u3088\u3046\u306b\u64cd\u4f5c\u3067\u304d\u306a\u3044\u3088\u3046\u306b\u8a2d\u5b9a\u3059\u308b\u3002<br \/>\n-rw&#8212;&#8212;-. 1 user user  416  4\u6708  9 22:32 2013 authorized_keys<\/p>\n<p>\u7ba1\u7406\u8005\u30e2\u30fc\u30c9\u3067Selinux\u306e\u8a2d\u5b9a\u3092\u4ee5\u4e0b\u306e\u69d8\u306b\u5909\u66f4\u3059\u308b\u3002<br \/>\n# setsebool allow_ssh_keysign=on<\/p>\n<p>id_rsa\u306f\u7aef\u672b\u5074\u306b\u79fb\u3057\u3066\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u7aef\u672b\u30bd\u30d5\u30c8\u306b\u9069\u6642\u8a2d\u5b9a\u3059\u308b\u3002<\/p>\n<p>\u4ee5\u4e0a\u3067\u4e0a\u624b\u304f\u9375\u30d5\u30a1\u30a4\u30eb\u306b\u3088\u308b\u30ed\u30b0\u30a4\u30f3\u304c\u3067\u304d\u308b\u3088\u3046\u306b\u306a\u3063\u305f\u3002<\/p>\n<p>\u53c2\u8003URL:<br \/>\nhttp:\/\/2done.org\/index.php?id=76\u3000\u57fa\u672c\u8a2d\u5b9a\u306f\u3053\u3053\u3092\u53c2\u8003\u306b\u3002\u305f\u3060\u3057Cent-OS Ver6.4\u3067\u306fopenssh-5.3\u304c\u30c7\u30d5\u30a9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3002<br \/>\nhttp:\/\/www.l2tp.org\/?p=159\u3000  OpenSSH+Selinux\u306e\u8a2d\u5b9a\/\u5bfe\u51e6\u6cd5<br \/>\nhttp:\/\/2done.org\/index.php?id=76  OpenSSH+Selinux\u306e\u8a2d\u5b9a\/\u5bfe\u51e6\u6cd5<\/p>\n","protected":false},"excerpt":{"rendered":"<p>ssh\u306f\u6982\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307f\u3067\u30d1\u30b9\u30ef\u30fc\u30c9\u306b\u3088\u308b\u30ed\u30b0\u30a4\u30f3\u306f\u51fa\u6765\u3066\u305f\u3093\u3060\u3051\u3069\u516c\u958b\/\u79d8\u5bc6\u9375\u306b\u3088\u308b\u30ed\u30b0\u30a4\u30f3\u3092\u8a2d\u5b9a\u3057\u3066\u307f\u305f\u3089\u898b\u4e8b\u306b\u306f\u307e\u3063\u3066\u3057\u307e\u3063\u3066\u306a\u304b\u306a\u304b\u4e0a\u624b\u304f\u3044\u304b\u306a\u304b\u3063\u305f\u306e\u3067\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u65b9\u6cd5\u3092\u8a18\u8ff0\u3057\u3066\u304a\u304f\u3002<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"categories":[1],"tags":[],"class_list":["post-176","post","type-post","status-publish","format-standard","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=176"}],"version-history":[{"count":0,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/176\/revisions"}],"wp:attachment":[{"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/darkgray.homelinux.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}