
{"id":1143,"date":"2016-10-18T16:37:08","date_gmt":"2016-10-18T08:37:08","guid":{"rendered":"https:\/\/www.webteach.tw\/?p=1143"},"modified":"2016-10-18T16:37:08","modified_gmt":"2016-10-18T08:37:08","slug":"linux-%e8%ae%8a%e6%9b%b4-ssh-port","status":"publish","type":"post","link":"https:\/\/www.webteach.tw\/?p=1143","title":{"rendered":"[ Linux ] &#8211; \u8b8a\u66f4 ssh port"},"content":{"rendered":"<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div><div style=\"margin-top: 0px; margin-bottom: 0px;\" class=\"sharethis-inline-share-buttons\" ><\/div><p>\t\t\t\t\u7b2c\u4e00\u6b65 \u8b8a\u66f4ssh\u8a2d\u5b9a\u6a94<br \/>\n\u6307\u4ee4\uff1a<br \/>\nvi \/etc\/ssh\/sshd_config<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br \/>\n# Package generated configuration file<br \/>\n# See the sshd_config(5) manpage for details<br \/>\n# What ports, IPs and protocols we listen for<br \/>\nPort 22&lt;=\u6539\u6210\u4f60\u60f3\u8981\u7684port\u8a18\u5f97\u4e0d\u8981\u8207\u5176\u5b83service\u7684port\u91cd\u8986 \u6539\u932f\u4f60\u5c31\u8981\u672c\u6a5f\u767b\u5165\u4e86\u2026<br \/>\n# Use these options to restrict which interfaces\/protocols sshd will bind to<br \/>\n#ListenAddress ::<br \/>\n#ListenAddress 0.0.0.0<br \/>\nProtocol 2<br \/>\n# HostKeys for protocol version 2<br \/>\nHostKey \/etc\/ssh\/ssh_host_rsa_key<br \/>\nHostKey \/etc\/ssh\/ssh_host_dsa_key<br \/>\nHostKey \/etc\/ssh\/ssh_host_ecdsa_key<br \/>\nHostKey \/etc\/ssh\/ssh_host_ed25519_key<br \/>\n#Privilege Separation is turned on for security<br \/>\nUsePrivilegeSeparation yes<br \/>\n# Lifetime and size of ephemeral version 1 server key<br \/>\nKeyRegenerationInterval 3600<br \/>\nServerKeyBits 1024<br \/>\n# Logging<br \/>\nSyslogFacility AUTH<br \/>\nLogLevel INFO<br \/>\n# Authentication:<br \/>\nLoginGraceTime 120<br \/>\nPermitRootLogin without-password<br \/>\nStrictModes yes<br \/>\nRSAAuthentication yes<br \/>\nPubkeyAuthentication yes<br \/>\n#AuthorizedKeysFile %h\/.ssh\/authorized_keys<br \/>\n# Don&#8217;t read the user&#8217;s ~\/.rhosts and ~\/.shosts files<br \/>\nIgnoreRhosts yes<br \/>\n# For this to work you will also need host keys in \/etc\/ssh_known_hosts<br \/>\nRhostsRSAAuthentication no<br \/>\n# similar for protocol version 2<br \/>\nHostbasedAuthentication no<br \/>\n\/\/&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br \/>\n\u7b2c\u4e8c\u6b65 \u91cd\u555f ssh<br \/>\n\u6307\u4ee4\uff1a\/etc\/init.d\/ssh restart\t\t<\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>\u7b2c\u4e00\u6b65 \u8b8a\u66f4ssh\u8a2d\u5b9a\u6a94 \u6307\u4ee4\uff1a vi  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","footnotes":""},"categories":[32],"tags":[466,524],"class_list":["post-1143","post","type-post","status-publish","format-standard","hentry","category-linux","tag-port","tag-ssh"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>[ Linux ] - \u8b8a\u66f4 ssh port - \u6df7\u6c34\u6478\u9b5a<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webteach.tw\/?p=1143\" \/>\n<meta property=\"og:locale\" content=\"zh_TW\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[ Linux ] - \u8b8a\u66f4 ssh port - \u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"og:description\" content=\"\u7b2c\u4e00\u6b65 \u8b8a\u66f4ssh\u8a2d\u5b9a\u6a94 \u6307\u4ee4\uff1a vi [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webteach.tw\/?p=1143\" \/>\n<meta property=\"og:site_name\" content=\"\u6df7\u6c34\u6478\u9b5a\" \/>\n<meta property=\"article:published_time\" content=\"2016-10-18T08:37:08+00:00\" \/>\n<meta name=\"author\" content=\"jeff\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005:\" \/>\n\t<meta name=\"twitter:data1\" content=\"jeff\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9810\u4f30\u95b1\u8b80\u6642\u9593\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\u9418\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1143#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1143\"},\"author\":{\"name\":\"jeff\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"headline\":\"[ Linux ] &#8211; \u8b8a\u66f4 ssh port\",\"datePublished\":\"2016-10-18T08:37:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1143\"},\"wordCount\":163,\"commentCount\":0,\"keywords\":[\"port\",\"ssh\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=1143#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1143\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1143\",\"name\":\"[ Linux ] - \u8b8a\u66f4 ssh port - \u6df7\u6c34\u6478\u9b5a\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\"},\"datePublished\":\"2016-10-18T08:37:08+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1143#breadcrumb\"},\"inLanguage\":\"zh-TW\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webteach.tw\\\/?p=1143\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/?p=1143#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9801\",\"item\":\"https:\\\/\\\/www.webteach.tw\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[ Linux ] &#8211; \u8b8a\u66f4 ssh port\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#website\",\"url\":\"https:\\\/\\\/www.webteach.tw\\\/\",\"name\":\"\u6df7\u6c34\u6478\u9b5a\",\"description\":\"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webteach.tw\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"zh-TW\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webteach.tw\\\/#\\\/schema\\\/person\\\/d434d754fd581338113eecfa923d7520\",\"name\":\"jeff\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-TW\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g\",\"caption\":\"jeff\"},\"sameAs\":[\"http:\\\/\\\/35.72.55.111\"],\"url\":\"https:\\\/\\\/www.webteach.tw\\\/?author=1\"},false]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"[ Linux ] - \u8b8a\u66f4 ssh port - \u6df7\u6c34\u6478\u9b5a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webteach.tw\/?p=1143","og_locale":"zh_TW","og_type":"article","og_title":"[ Linux ] - \u8b8a\u66f4 ssh port - \u6df7\u6c34\u6478\u9b5a","og_description":"\u7b2c\u4e00\u6b65 \u8b8a\u66f4ssh\u8a2d\u5b9a\u6a94 \u6307\u4ee4\uff1a vi [&hellip;]","og_url":"https:\/\/www.webteach.tw\/?p=1143","og_site_name":"\u6df7\u6c34\u6478\u9b5a","article_published_time":"2016-10-18T08:37:08+00:00","author":"jeff","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005:":"jeff","\u9810\u4f30\u95b1\u8b80\u6642\u9593":"1 \u5206\u9418"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webteach.tw\/?p=1143#article","isPartOf":{"@id":"https:\/\/www.webteach.tw\/?p=1143"},"author":{"name":"jeff","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"headline":"[ Linux ] &#8211; \u8b8a\u66f4 ssh port","datePublished":"2016-10-18T08:37:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webteach.tw\/?p=1143"},"wordCount":163,"commentCount":0,"keywords":["port","ssh"],"articleSection":["Linux"],"inLanguage":"zh-TW","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.webteach.tw\/?p=1143#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.webteach.tw\/?p=1143","url":"https:\/\/www.webteach.tw\/?p=1143","name":"[ Linux ] - \u8b8a\u66f4 ssh port - \u6df7\u6c34\u6478\u9b5a","isPartOf":{"@id":"https:\/\/www.webteach.tw\/#website"},"datePublished":"2016-10-18T08:37:08+00:00","author":{"@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520"},"breadcrumb":{"@id":"https:\/\/www.webteach.tw\/?p=1143#breadcrumb"},"inLanguage":"zh-TW","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webteach.tw\/?p=1143"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.webteach.tw\/?p=1143#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9801","item":"https:\/\/www.webteach.tw\/"},{"@type":"ListItem","position":2,"name":"[ Linux ] &#8211; \u8b8a\u66f4 ssh port"}]},{"@type":"WebSite","@id":"https:\/\/www.webteach.tw\/#website","url":"https:\/\/www.webteach.tw\/","name":"\u6df7\u6c34\u6478\u9b5a","description":"\u5b78\u7121\u6b62\u5883,\u6559\u5b78\u76f8\u9577","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webteach.tw\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"zh-TW"},{"@type":"Person","@id":"https:\/\/www.webteach.tw\/#\/schema\/person\/d434d754fd581338113eecfa923d7520","name":"jeff","image":{"@type":"ImageObject","inLanguage":"zh-TW","@id":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/5797200e421b670a2ce64d6e7382054c69b231d4aab55742c96bb1e51bc9fefc?s=96&d=mm&r=g","caption":"jeff"},"sameAs":["http:\/\/35.72.55.111"],"url":"https:\/\/www.webteach.tw\/?author=1"},false]}},"views":746,"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"_links":{"self":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/1143","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1143"}],"version-history":[{"count":0,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=\/wp\/v2\/posts\/1143\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1143"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1143"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webteach.tw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1143"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}