{"id":6451,"date":"2021-01-12T22:00:16","date_gmt":"2021-01-12T13:00:16","guid":{"rendered":"https:\/\/east19-mikas.com\/?p=6451"},"modified":"2024-08-01T14:09:06","modified_gmt":"2024-08-01T05:09:06","slug":"%e5%a4%96%e9%83%a8%e3%81%8b%e3%82%89%e3%81%aessh%e6%8e%a5%e7%b6%9a","status":"publish","type":"post","link":"https:\/\/east19-mikas.com\/mpat\/?p=6451","title":{"rendered":"\u5916\u90e8\u304b\u3089\u306eSSH\u63a5\u7d9a"},"content":{"rendered":"\n<p>LAN\u7aef\u5b50\u306e\u30e9\u30f3\u30d7\u70b9\u6ec5\u304c\u6fc0\u3057\u304f\u3001\u5ef6\u3005\u3068\u7d9a\u304f\u306e\u3067\u6c17\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u305d\u3053\u3067\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002WAN\u304b\u3089\u306eSSH\u63a5\u7d9a\u304c\u539f\u56e0\u3068\u5224\u660e\u3057\u305f\u306e\u3067\u3001\u5bfe\u7b56\u3092\u3057\u305f\u6642\u306e\u30e1\u30e2\u3067\u3059<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">firewall\u306eSSH\u63a5\u7d9a\u3092\u53d6\u308a\u5408\u3048\u3059\u4e0d\u53ef\u306b\u3057\u307e\u3057\u305f<\/h2>\n\n\n\n<p>\u30b5\u30fc\u30d0\u30fc\u306b\u306f\u9375\u8a8d\u8a3c\u3057\u305f\u7279\u5b9a\u306e\u30e6\u30fc\u30b6\u30fc\u306e\u307f\u8a31\u53ef\u3057\u3066\u3044\u305f\u3064\u3082\u308a\u3067\u3059\u304c\u30fb\u30fb\u30fb\u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d<\/p>\n\n\n\n<p class=\"has-background\" style=\"background-color:#444444\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">firewall-cmd &#8211;list-all<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"><br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">public (active)<br>  target: default<br>  icmp-block-inversion: no<br>  interfaces: enp2s0<br>  sources: <br>  services: ssh dhcpv6-client http https smtp<br>  ports: 80\/tcp 443\/tcp 22\/tcp 25\/tcp 587\/tcp<br>  protocols: <br>  masquerade: no<br>  forward-ports: <br>  source-ports: <br>  icmp-blocks: <br>  rich rules: <\/mark><\/p>\n\n\n\n<p>ssh\u30b5\u30fc\u30d3\u30b9\u304c\u8a31\u53ef\u3055\u308c\u3066\u3044\u307e\u3059\u3002\u30be\u30fc\u30f3\u306fpublic\u3067\u3059\u3002\u305d\u3053\u3067\u3001\u3053\u306e\u30b5\u30fc\u30d3\u30b9\u3092\u505c\u6b62\u3057\u307e\u3059<\/p>\n\n\n\n<p class=\"has-white-color has-text-color has-background has-link-color wp-elements-823de4c8ad0fdc0de6a298cca6757321\" style=\"background-color:#444444\"><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">firewall-cmd &#8211;permanent &#8211;remove-service=ssh<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"><br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">success<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"><br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">firewall-cmd &#8211;reload<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"><br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">success<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"><br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">#<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"> <\/mark><mark style=\"background-color:rgba(0, 0, 0, 0);color:#ffff00\" class=\"has-inline-color\">firewall-cmd &#8211;list-all<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"><br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">public (active)<\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-cocoon-white-color\"><br><\/mark><mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-ast-global-color-5-color\">  target: default<br>  icmp-block-inversion: no<br>  interfaces: enp2s0<br>  sources: <br>  services: dhcpv6-client http https smtp<br>  ports: 80\/tcp 443\/tcp 22\/tcp 25\/tcp 587\/tcp<br>  protocols: <br>  masquerade: no<br>  forward-ports: <br>  source-ports: <br>  icmp-blocks: <br>  rich rules: <\/mark><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u505c\u6b62\u3057\u305f\u7d50\u679c\u306f\u30fb\u30fb\u30fb<\/h2>\n\n\n\n<p>\u4e0a\u8a18\u306e\u8a2d\u5b9a\u3092\u884c\u3063\u305f\u6240\u3001LAN\u7aef\u5b50\u306e\u6fc0\u3057\u3044\u30a2\u30af\u30bb\u30b9\u30e9\u30f3\u30d7\u306e\u70b9\u6ec5\u304c\u306a\u304f\u306a\u308a\u307e\u3057\u305f\u3002\u30ed\u30fc\u30ab\u30eb\u304b\u3089\u63a5\u7d9a\u3057\u3066\u3044\u308bPC\u304b\u3089\u306e\u63a5\u7d9a\u306b\u306f\u5f71\u97ff\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p>\u53d6\u308a\u6562\u3048\u305a\u3053\u306e\u8a2d\u5b9a\u3067\u3057\u3070\u3089\u304f\u69d8\u5b50\u3092\u898b\u3066\u307f\u307e\u3057\u3087\u3046\u30fb\u30fb\u30fb<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LAN\u7aef\u5b50\u306e\u30e9\u30f3\u30d7\u70b9\u6ec5\u304c\u6fc0\u3057\u304f\u3001\u5ef6\u3005\u3068\u7d9a\u304f\u306e\u3067\u6c17\u306b\u306a\u308a\u307e\u3057\u305f\u3002\u305d\u3053\u3067\u30b5\u30fc\u30d0\u30fc\u306b\u63a5\u7d9a\u3057\u78ba\u8a8d\u3057\u307e\u3057\u305f\u3002WAN\u304b\u3089\u306eSSH\u63a5\u7d9a\u304c\u539f\u56e0\u3068\u5224\u660e\u3057\u305f\u306e\u3067\u3001\u5bfe\u7b56\u3092\u3057\u305f\u6642\u306e\u30e1\u30e2\u3067\u3059 firewall\u306eSSH\u63a5\u7d9a\u3092\u53d6\u308a\u5408\u3048\u3059\u4e0d\u53ef\u306b\u3057\u307e\u3057\u305f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":8096,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[8,13],"tags":[57,104],"class_list":["post-6451","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-net","category-server","tag-firewall","tag-ssh"],"_links":{"self":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/6451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=6451"}],"version-history":[{"count":2,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/6451\/revisions"}],"predecessor-version":[{"id":8098,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/posts\/6451\/revisions\/8098"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=\/wp\/v2\/media\/8096"}],"wp:attachment":[{"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=6451"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=6451"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/east19-mikas.com\/mpat\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=6451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}