{"id":162,"date":"2015-06-28T22:43:47","date_gmt":"2015-06-28T13:43:47","guid":{"rendered":"https:\/\/www.nabecyan.dyndns.org\/wordpress\/?p=162"},"modified":"2015-06-28T22:45:22","modified_gmt":"2015-06-28T13:45:22","slug":"osx-yosemite-server%e3%81%aesshd%e8%a8%ad%e5%ae%9a","status":"publish","type":"post","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=162","title":{"rendered":"OSX Yosemite Server\u306esshd\u8a2d\u5b9a"},"content":{"rendered":"<p>OSX Yosemite\u306e\u30b5\u30fc\u30d0\u3067sshd\u3092\u52d5\u304b\u3057\u3066\u5916\u90e8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u306e\u3060\u3051\u3069\u3001Brute force attack\u306e\u5bfe\u7b56\u3082\u3057\u306a\u304f\u3061\u3083\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3061\u3087\u3063\u3068\u5bfe\u7b56\u3002\u672c\u5f53\u306fdenyhosts\u3067\u5f3e\u304d\u305f\u3044\u3068\u3053\u306a\u3093\u3060\u3051\u3069\u3001\u306a\u3093\u304b\u3046\u307e\u304f\u52d5\u304b\u306a\u3044\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u306e\u5bfe\u7b56\u3002\uff08Ubuntu\u30b5\u30fc\u30d0\u3082sshd\u52d5\u304b\u3057\u3066\u308b\u3051\u3069\u3001\u30dd\u30fc\u30c8\u3092\u5909\u66f4\u3057\u3066\u308b\u306e\u3068\u3001denyhosts\u3067\u5f3e\u304f\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u3057\u3001tcpwrappers\u3082\u304b\u3051\u3066\u308b\u306e\u3067\u5927\u4e08\u592b\u304b\u306a\uff09<\/p>\n<p>&nbsp;<\/p>\n<p>1.\u3000\/etc\/sshd_config\u306b\u4ee5\u4e0b\u3092\u8ffd\u8a18<br \/>\nPermitRootLogin no<br \/>\nMaxAuthTries 3<br \/>\nClientAliveInterval 300<br \/>\nClientAliveCountMax 3<br \/>\nMaxStartups 10:30:100<br \/>\nAllowUsers hideki<\/p>\n<p>2.\u3000<a href=\"https:\/\/support.apple.com\/ja-jp\/HT200259\">OS X Server\uff1aAdaptive Firewall \u3092\u6709\u52b9\u306b\u3059\u308b\u65b9\u6cd5<\/a>\u3000\u3067\u30a2\u30c0\u30d7\u30c6\u30a3\u30d6\u30d5\u30a3\u30eb\u30bf\u3092\u6709\u52b9\u306b\u3057\u305f\u3002<br \/>\nsudo pfctl -f \/etc\/pf.conf<br \/>\nsudo \/Applications\/Server.app\/Contents\/ServerRoot\/usr\/sbin\/serverctl enable service=com.apple.afctl<br \/>\nsudo \/Applications\/Server.app\/Contents\/ServerRoot\/usr\/libexec\/afctl -c<br \/>\nsudo \/Applications\/Server.app\/Contents\/ServerRoot\/usr\/libexec\/afctl -f<\/p>\n<p>&nbsp;<\/p>\n<p>\u3055\u3066\u3001\u52b9\u679c\u3042\u308b\u304b\u306a\u3041\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>OSX Yosemite\u306e\u30b5\u30fc\u30d0\u3067sshd\u3092\u52d5\u304b\u3057\u3066\u5916\u90e8\u304b\u3089\u30a2\u30af\u30bb\u30b9\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u3066\u3044\u308b\u306e\u3060\u3051\u3069\u3001Brute force attack\u306e\u5bfe\u7b56\u3082\u3057\u306a\u304f\u3061\u3083\u3044\u3051\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u3061\u3087\u3063\u3068\u5bfe\u7b56\u3002\u672c\u5f53\u306fdenyhosts\u3067\u5f3e\u304d\u305f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[4,10],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p6KCmj-2C","jetpack-related-posts":[{"id":95,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=95","url_meta":{"origin":162,"position":0},"title":"Ubuntu 14.04LTS + LXDE","author":"nabecyan","date":"2014\u5e744\u670827\u65e5","format":false,"excerpt":"Ubuntu14.04LTS\u304c\u30ea\u30ea\u30fc\u30b9\u3055\u308c\u305f\u306e\u3067\u3001\u30b5\u30fc\u30d0\u306eOS\u3092\u5168\u9762\u7684\u306b\u898b\u76f4\u3057\u3002 \u30fbUnity\u306f2D\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":31,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=31","url_meta":{"origin":162,"position":1},"title":"Lion\u4e0a\u306eParallels\u306bSnowLeopard\u3092\u5165\u308c\u308b","author":"wp-post","date":"2011\u5e749\u67084\u65e5","format":false,"excerpt":"Lion\u306b\u3057\u3066\u3001Rosetta\u304c\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u306a\u304f\u306a\u3063\u305f\u306e\u3067\u3001SnowLeopard\u3092\u4eee\u60f3\u30de\u30b7\u30f3\u3068\u3057\u3066\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":180,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=180","url_meta":{"origin":162,"position":2},"title":"redmine\u306e\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9","author":"nabecyan","date":"2016\u5e749\u670822\u65e5","format":false,"excerpt":"\u30b5\u30fc\u30d0\u306eredmine\u30922.* \u304b\u30893.0\u306b\u30a2\u30c3\u30d7\u30b0\u30ec\u30fc\u30c9\u3059\u308b \u524d\u63d0\uff1aUbuntu 16.04 LT\u2026","rel":"","context":"Cloud","block_context":{"text":"Cloud","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=13"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":24,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=24","url_meta":{"origin":162,"position":3},"title":"\u30b5\u30fc\u30d0\u304c\u5165\u529b\uff0f\u51fa\u529b\u30a8\u30e9\u30fc\uff1f","author":"wp-post","date":"2011\u5e745\u670830\u65e5","format":false,"excerpt":"Web\/Mail\/DNS\u3068\u304b\u3092\u30b5\u30fc\u30d3\u30b9\u3057\u3066\u308bfit-PC2i\u304c\u3041\u2026 \u3069\u3046\u3057\u3066\u304b\u3001ssh\u30ed\u30b0\u30a4\u30f3\u3057\u3066\u3001\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":67,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=67","url_meta":{"origin":162,"position":4},"title":"Mountain Lion\u306bOSX\u30b5\u30fc\u30d0\u3092\u8ffd\u52a0","author":"nabecyan","date":"2012\u5e748\u670815\u65e5","format":false,"excerpt":"Mountain Lion\u306bOSX\u30b5\u30fc\u30d0\u3092\u8ffd\u52a0\u3057\u3066\u307f\u305f\u3002 \u53d6\u308a\u3042\u3048\u305a\u3001Web\u30b5\u30fc\u30d3\u30b9\u304b\u3089\u3002Wiki\u3082\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":147,"url":"https:\/\/wordpress.nabecyan.dyndns.org\/?p=147","url_meta":{"origin":162,"position":5},"title":"Lubuntu\u306b\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u63a5\u7d9a","author":"nabecyan","date":"2015\u5e744\u670813\u65e5","format":false,"excerpt":"Lutbuntu\u306bXRDP\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u30ea\u30e2\u30fc\u30c8\u30c7\u30b9\u30af\u30c8\u30c3\u30d7\u63a5\u7d9a\u3067\u304d\u308b\u3088\u3046\u306b\u3057\u305f\u3002 1.xrdp\u2026","rel":"","context":"Computing","block_context":{"text":"Computing","link":"https:\/\/wordpress.nabecyan.dyndns.org\/?cat=4"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/posts\/162"}],"collection":[{"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":4,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":167,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions\/167"}],"wp:attachment":[{"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wordpress.nabecyan.dyndns.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}