{"id":4857,"date":"2014-12-16T09:00:11","date_gmt":"2014-12-16T00:00:11","guid":{"rendered":"http:\/\/www.vincentina.net\/?p=4857"},"modified":"2014-12-14T19:47:35","modified_gmt":"2014-12-14T10:47:35","slug":"lpic303-openssh","status":"publish","type":"post","link":"https:\/\/www.vincentina.net\/?p=4857","title":{"rendered":"LPIC303 OpenSSH"},"content":{"rendered":"<p>Ruby\u3067\u3042\u308c\u3053\u308c\u3084\u308a\u305f\u3044\u4e8b\u306f\u51fa\u3066\u304d\u3066\u3044\u308b\u3051\u308c\u3069\u3001\u6700\u8fd1\u3061\u3087\u3053\u3063\u3068\u30b9\u30d4\u30fc\u30c9\u30c0\u30a6\u30f3\u3057\u3066\u304d\u305f\u611f\u304c\u3042\u308b\u306e\u3067\u3001\u6c17\u5206\u8ee2\u63db\u3082\u517c\u306d\u3066LPIC\u306b\u623b\u308d\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u306a\u3093\u3068\u306a\u304f\uff15\u7ae0\uff5e\uff14\u7ae0\uff5e\uff13\u7ae0\u3068\u9006\u304b\u3089\u521d\u3081\u3066\u3001\u4eca\u306f\uff13\u7ae0\u3067\u3059\u3002<br \/>\n3\u7ae0\u306f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u30fc\u306e\u984c\u76ee\u3067\u3059\u304c\u3001LPI\u306e\u30b5\u30a4\u30c8\u306b\u3088\u308b\u3068\u51fa\u984c\u3055\u308c\u308b\u91cd\u307f\u304c\u305d\u308c\u307b\u3069\u9ad8\u304f\u306a\u3044\u305b\u3044\u304b\u3001LPILevel3\u554f\u984c\u96c6\u3082\uff13\u7ae0\u306b\u95a2\u3057\u3066\u306f\u60c5\u5831\u91cf\u304c\u5c11\u306a\u3044\u306e\u3060\u3002\u91cd\u307f\u304c\u4f4e\u3044\u3068\u3044\u3046\u3088\u308a\u304b\u306f\u3001Level1\u30fbLevel2\u3092\u901a\u3057\u3066\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u57fa\u672c\u7684\u306a\u3068\u3053\u308d\u306f\u51fa\u984c\u3055\u308c\u3066\u3044\u308b\u304b\u3089\u304b\u306a\u3041\u3068\u63a8\u6e2c\u3002<br \/>\n\u3068\u3044\u3046\u4e8b\u3067\u3001\u3057\u3063\u304b\u308a\u8eab\u306b\u3064\u3044\u3066\u306a\u3044\u3068\u30c6\u30b9\u30c8\u3067\u6ce3\u304f\u3053\u3068\u306b\u306a\u308b\u306e\u304b\u306d\u3002<br \/>\n\u307e\u3041\u3001\u4e00\u756a\u91cd\u8981\u5ea6\u304c\u9ad8\u304b\u3063\u305fOpenSSH\u3060\u3051\u3055\u3089\u3063\u3068\u3084\u3063\u3068\u3053\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3093\u3067\u3053\u3046\u3044\u3046\u6642\u306b\u5f79\u306b\u7acb\u3064\u306e\u304cDocker\u3067\u3001\u7a7a\u3063\u307d\u306e\u72b6\u614b\u306eOS\u3092\u4e00\u77ac\u3067\u7528\u610f\u3067\u304d\u3061\u3083\u3044\u307e\u3059\u306e\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">&#x5B;takeken@ubuntu]$ sudo docker run -it --name ssh_test centos:centos5 \/bin\/bash\r\n&#x5B;root@30ebb7069a38 \/]#<\/pre>\n<p>\u3053\u308c\u3067Centos5\u306e\u74b0\u5883\u304c\u51fa\u6765\u4e0a\u304c\u308a\u307e\u3057\u305f\u3002<br \/>\nCentos5\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u3059\u3067\u306b\u6301\u3063\u3066\u3044\u305f\u306e\u3067\uff11\u79d2\u3082\u7d4c\u3063\u3066\u306a\u3044\u3067\u3059\u3002<\/p>\n<p>\u3067\u3082\u3063\u3066\u3001openssh\u3068openssh-server\u3092\u666e\u901a\u306b\u5165\u308c\u307e\u3057\u305f\u3002<\/p>\n<p>\u8272\u3005\u898b\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u6709\u52b9\u306a\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">&#x5B;root@5dcda379731d \/]# cat \/etc\/ssh\/sshd_config | grep -v &quot;^#&quot; | grep -v '^\\s*$'\r\nProtocol 2\r\nSyslogFacility AUTHPRIV\r\nPasswordAuthentication yes\r\nChallengeResponseAuthentication no\r\nGSSAPIAuthentication yes\r\nGSSAPICleanupCredentials yes\r\nUsePAM yes\r\nAcceptEnv LANG LANGUAGE LC_CTYPE LC_NUMERIC LC_TIME LC_COLLATE LC_MONETARY LC_MESSAGES\r\nAcceptEnv LC_PAPER LC_NAME LC_ADDRESS LC_TELEPHONE LC_MEASUREMENT\r\nAcceptEnv LC_IDENTIFICATION LC_ALL\r\nX11Forwarding yes\r\nSubsystem\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 sftp\u00a0\u00a0\u00a0 \/usr\/libexec\/openssh\/sftp-server<\/pre>\n<p>\u6700\u4f4e\u9650\u77e5\u3063\u3066\u305f\u65b9\u304c\u3044\u3044\u8a2d\u5b9a\u9805\u76ee\u3002<\/p>\n<table>\n<tbody>\n<tr>\n<td>protocol 2<\/td>\n<td>ssh\uff12\u306e\u307f\u8a31\u53ef\u3063\u3066\u3053\u3068\u3002<\/td>\n<\/tr>\n<tr>\n<td>SyslogFacility AUTHPRIV<\/td>\n<td>Authpriv\u306a\u3089\u8a8d\u8a3c\u3084\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u306b\u95a2\u3059\u308b\u30e1\u30c3\u30bb\u30fc\u30b8\u3092\u5410\u304f\u3002<\/td>\n<\/tr>\n<tr>\n<td>UsePAM yes<\/td>\n<td>PAM\u3092\u4f7f\u3063\u3066\u8a8d\u8a3c\u3059\u308b\u304b\u5426\u304b\u3002No\u306a\u3089\/etc\/shadow\u3067\u8a8d\u8a3c\u3002<\/td>\n<\/tr>\n<tr>\n<td>#PermitRootLogin yes<\/td>\n<td>Root\u3067\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u308b\u304b\u5426\u304b\u3002<\/td>\n<\/tr>\n<tr>\n<td>#PubkeyAuthentication yes<\/td>\n<td>\u9375\u8a8d\u8a3c\u3092\u8a31\u53ef\u3059\u308b\u304b\u5426\u304b\u3002<\/td>\n<\/tr>\n<tr>\n<td>#PasswordAuthentication yes<\/td>\n<td>\u30d1\u30b9\u30ef\u30fc\u30c9\u8a8d\u8a3c\u3092\u8a31\u53ef\u3059\u308b\u304b\u5426\u304b\u3002<\/td>\n<\/tr>\n<tr>\n<td>GSSAPIAuthentication yes<\/td>\n<td>GSSAPI \u30d9\u30fc\u30b9\u306e\u30e6\u30fc\u30b6\u8a8d\u8a3c\u3092\u4f7f\u7528\u3059\u308b\u304b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u3067\u306f\u3001\u3053\u308c\u3067\u7d42\u308f\u3063\u3061\u3083\u3046\u306e\u3082\u30a2\u30ec\u306a\u3093\u3067\u3001\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u7a81\u7136\u4e7e\u96fb\u6c60\u304c\u30d1\u30c1\u30d1\u30c1\u9cf4\u308a\u3060\u3057\u3066\u3084\u3070\u305d\u3046\u306a\u306e\u3067\u4eca\u56de\u306f\u7d42\u308f\u308a\uff01<\/p>\n<p>&nbsp;<\/p>\n<div class='wp_social_bookmarking_light'>        <div class=\"wsbl_twitter\"><a href=\"https:\/\/twitter.com\/share\" class=\"twitter-share-button\" data-url=\"https:\/\/www.vincentina.net\/?p=4857\" data-text=\"LPIC303 OpenSSH\" data-via=\"TakekenTw\" data-lang=\"ja\">Tweet<\/a><\/div><\/div>\n<br class='wp_social_bookmarking_light_clear' \/>\n","protected":false},"excerpt":{"rendered":"<p>Ruby\u3067\u3042\u308c\u3053\u308c\u3084\u308a\u305f\u3044\u4e8b\u306f\u51fa\u3066\u304d\u3066\u3044\u308b\u3051\u308c\u3069\u3001\u6700\u8fd1\u3061\u3087\u3053\u3063\u3068\u30b9\u30d4\u30fc\u30c9\u30c0\u30a6\u30f3\u3057\u3066\u304d\u305f\u611f\u304c\u3042\u308b\u306e\u3067\u3001\u6c17\u5206\u8ee2\u63db\u3082\u517c\u306d\u3066LPIC\u306b\u623b\u308d\u3046\u304b\u3068\u601d\u3044\u307e\u3059\u3002 \u306a\u3093\u3068\u306a\u304f\uff15\u7ae0\uff5e\uff14\u7ae0\uff5e\uff13\u7ae0\u3068\u9006\u304b\u3089\u521d\u3081\u3066\u3001\u4eca\u306f\uff13\u7ae0\u3067\u3059\u3002 3\u7ae0\u306f\u30a2\u30d7\u30ea\u30b1 &hellip; <a href=\"https:\/\/www.vincentina.net\/?p=4857\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;LPIC303 OpenSSH&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[6],"tags":[],"class_list":["post-4857","post","type-post","status-publish","format-standard","hentry","category-server"],"_links":{"self":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/4857","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4857"}],"version-history":[{"count":0,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=\/wp\/v2\/posts\/4857\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4857"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4857"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.vincentina.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4857"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}