{"id":3415,"date":"2018-05-12T09:52:36","date_gmt":"2018-05-12T01:52:36","guid":{"rendered":"http:\/\/cn.hostease.com\/xueyuan\/?p=3415"},"modified":"2018-05-12T09:52:36","modified_gmt":"2018-05-12T01:52:36","slug":"centos-minimal%e7%89%88%e6%9c%ac%e4%b8%8b%e5%ae%89%e8%a3%85telnet%e6%9c%8d%e5%8a%a1%e5%92%8cxinetd%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/cn.hostease.com\/xueyuan\/hemanual\/centos-minimal%e7%89%88%e6%9c%ac%e4%b8%8b%e5%ae%89%e8%a3%85telnet%e6%9c%8d%e5%8a%a1%e5%92%8cxinetd%e6%9c%8d%e5%8a%a1\/","title":{"rendered":"CentOS-Minimal\u7248\u672c\u4e0b\u5b89\u88c5telnet\u670d\u52a1\u548cxinetd\u670d\u52a1"},"content":{"rendered":"<p>\u9ed8\u8ba4\u5728<a href=\"https:\/\/www.linuxidc.com\/topicnews.aspx?tid=14\">CentOS<\/a>-Minimal\u7248\u672c\u4e0b\u6ca1\u6709\u5b89\u88c5telnet\u548cxinetd\u670d\u52a1\u3002<\/p>\n<ul>\n<li><strong>\u5b89\u88c5telnet<\/strong><\/li>\n<\/ul>\n<p># rpm -qa | grep telnet<\/p>\n<p>&#8211;\u68c0\u67e5\u662f\u5426\u5b89\u88c5telnet\uff0c\u6ca1\u6709\u6587\u4ef6\u8868\u793a\u672a\u5b89\u88c5<\/p>\n<p># yum -y install telnet<\/p>\n<p>&#8211;\u5b89\u88c5telnet\u5ba2\u6237\u7aef\uff0c\u51fa\u73b0\u201cComplete!\u201d\u8868\u793a\u5b89\u88c5\u5b8c\u6210<\/p>\n<p># yum -y install telnet-server<\/p>\n<p>&#8211;\u5b89\u88c5telnet\u670d\u52a1\u7aef\uff0c\u51fa\u73b0\u201cComplete!\u201d\u8868\u793a\u5b89\u88c5\u5b8c\u6210<\/p>\n<p><strong>\u00a0<\/strong><\/p>\n<p><strong>2<\/strong><strong>\u3001\u5b89\u88c5xinetd<\/strong><\/p>\n<p># rpm -qa | grep xinetd<\/p>\n<p>&#8211;\u68c0\u67e5\u662f\u5426\u5b89\u88c5xinetd\uff0c\u6ca1\u6709\u6587\u4ef6\u8868\u793a\u672a\u5b89\u88c5<\/p>\n<p># yum -y install xinetd<\/p>\n<p>&#8211;\u5b89\u88c5xinetd\uff0c\u51fa\u73b0\u201cComplete!\u201d\u8868\u793a\u5b89\u88c5\u5b8c\u6210<\/p>\n<p>&nbsp;<\/p>\n<p><strong>3<\/strong><strong>\u3001\u5728xinetd\u670d\u52a1\u4e2d\u5f00\u542ftelnet\u670d\u52a1<\/strong><\/p>\n<p># vi \/etc\/xinetd.d\/telnet\u00a0 &#8211;\u7f16\u8f91<\/p>\n<p># default: yes<br \/>\n# description: The telnet server servestelnet sessions<br \/>\n# unencrypted username\/password pairs for authentication<br \/>\nservice telnet<br \/>\n{<br \/>\nflags = REUSE<br \/>\nsocket_type = stream<br \/>\nwait = no<br \/>\nuser = root<br \/>\nserver =\/usr\/sbin\/in.telnetd<br \/>\nlog_on_failure += USERID<br \/>\ndisable = no<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n<p><strong>4<\/strong><strong>\u3001\u542f\u52a8xinetd\u670d\u52a1<\/strong><\/p>\n<p># systemctl restart xinetd.service\u00a0 &#8211;\u542f\u52a8\u670d\u52a1<\/p>\n<p># ps -ef | grep xinetd\u00a0 &#8211;\u67e5\u770b\u542f\u52a8<\/p>\n<p>&nbsp;<\/p>\n<p><strong>5<\/strong><strong>\u3001\u8bbe\u7f6e\u5f00\u673a\u542f\u52a8xinetd<\/strong><\/p>\n<p># chkconfig &#8211;level 35 xinetd on<\/p>\n<p>Note: Forwarding request to &#8216;systemctl enable xinetd.service&#8217;.<\/p>\n<p># systemctl enable xinetd.service<\/p>\n<p># chkconfig &#8211;list\u00a0 &#8211;\u67e5\u770b<\/p>\n<p>&nbsp;<\/p>\n<p><strong>6<\/strong><strong>\u3001\u6d4b\u8bd5telnet<\/strong><\/p>\n<p># telnet 127.0.0.1<\/p>\n<p>telnet\u4e0broot\u767b\u5f55\uff0c\u5bc6\u7801\u6b63\u786e\uff0c\u603b\u63d0\u793a\uff1aLogin incorrect<\/p>\n<p>&nbsp;<\/p>\n<p># vi \/etc\/pam.d\/remote<\/p>\n<p>\u6ce8\u91ca\/etc\/pam.d\/remote\u7684\u7b2c\u4e00\u884c\uff0c\u5373\uff1aauth required pam_securetty.so<\/p>\n<p>&nbsp;<\/p>\n<p>\u5173\u95ed\u9632\u706b\u5899<\/p>\n<p># systemctl status firewalld.service &#8211;\u518d\u67e5\u770b\u9632\u706b\u5899\u72b6\u6001<br \/>\n# systemctl stop firewalld.service &#8211;\u5173\u95ed\u9632\u706b\u5899<br \/>\n# systemctl disable firewalld.service &#8211;\u6c38\u4e45\u5173\u95ed\u9632\u706b\u5899<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9ed8\u8ba4\u5728CentOS-Minimal\u7248\u672c\u4e0b\u6ca1\u6709\u5b89\u88c5telnet\u548cxinetd\u670d\u52a1\u3002 \u5b89\u88c5telnet # rpm &#8230; <a title=\"CentOS-Minimal\u7248\u672c\u4e0b\u5b89\u88c5telnet\u670d\u52a1\u548cxinetd\u670d\u52a1\" class=\"read-more\" href=\"https:\/\/cn.hostease.com\/xueyuan\/hemanual\/centos-minimal%e7%89%88%e6%9c%ac%e4%b8%8b%e5%ae%89%e8%a3%85telnet%e6%9c%8d%e5%8a%a1%e5%92%8cxinetd%e6%9c%8d%e5%8a%a1\/\" aria-label=\"\u9605\u8bfb CentOS-Minimal\u7248\u672c\u4e0b\u5b89\u88c5telnet\u670d\u52a1\u548cxinetd\u670d\u52a1\">\u9605\u8bfb\u66f4\u591a<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3,49,5],"tags":[368,837],"class_list":["post-3415","post","type-post","status-publish","format-standard","hentry","category-hemanual","category-linux","category-jishu","tag-telnet","tag-xinetd"],"aioseo_notices":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3415","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/comments?post=3415"}],"version-history":[{"count":1,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3415\/revisions"}],"predecessor-version":[{"id":3416,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/posts\/3415\/revisions\/3416"}],"wp:attachment":[{"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/media?parent=3415"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/categories?post=3415"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cn.hostease.com\/xueyuan\/wp-json\/wp\/v2\/tags?post=3415"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}