{"id":42686,"date":"2024-10-03T23:37:25","date_gmt":"2024-10-03T15:37:25","guid":{"rendered":"https:\/\/server.hk\/cnblog\/42686\/"},"modified":"2024-10-03T23:37:25","modified_gmt":"2024-10-03T15:37:25","slug":"centos-6-x-%e7%b3%bb%e7%b5%b1%e4%b8%8b%e5%ae%89%e8%a3%9d-telnet-%e5%91%bd%e4%bb%a4%e5%8f%8a%e4%bd%bf%e7%94%a8","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/42686\/","title":{"rendered":"CentOS 6.x \u7cfb\u7d71\u4e0b\u5b89\u88dd telnet \u547d\u4ee4\u53ca\u4f7f\u7528"},"content":{"rendered":"<h1 id=\"centos-6-x-%e7%b3%bb%e7%b5%b1%e4%b8%8b%e5%ae%89%e8%a3%9d-telnet-%e5%91%bd%e4%bb%a4%e5%8f%8a%e4%bd%bf%e7%94%a8-MTmZoTijTG\">CentOS 6.x \u7cfb\u7d71\u4e0b\u5b89\u88dd telnet \u547d\u4ee4\u53ca\u4f7f\u7528<\/h1>\n<p>\u5728\u8a31\u591a\u4f3a\u670d\u5668\u7ba1\u7406\u548c\u7db2\u7d61\u6545\u969c\u6392\u9664\u7684\u60c5\u5883\u4e2d\uff0ctelnet \u662f\u4e00\u500b\u975e\u5e38\u6709\u7528\u7684\u5de5\u5177\u3002\u5b83\u5141\u8a31\u7528\u6236\u901a\u904e\u7db2\u7d61\u9023\u63a5\u5230\u9060\u7a0b\u4e3b\u6a5f\uff0c\u4e26\u9032\u884c\u547d\u4ee4\u884c\u64cd\u4f5c\u3002\u96d6\u7136 telnet \u7684\u5b89\u5168\u6027\u76f8\u5c0d\u8f03\u4f4e\uff0c\u4f46\u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\uff0c\u5b83\u4ecd\u7136\u662f\u4e00\u500b\u65b9\u4fbf\u7684\u9078\u64c7\u3002\u672c\u6587\u5c07\u4ecb\u7d39\u5982\u4f55\u5728 CentOS 6.x \u7cfb\u7d71\u4e0a\u5b89\u88dd telnet \u547d\u4ee4\u53ca\u5176\u57fa\u672c\u4f7f\u7528\u65b9\u6cd5\u3002<\/p>\n<h2 id=\"%e4%b8%80%e3%80%81%e5%ae%89%e8%a3%9d-telnet-MTmZoTijTG\">\u4e00\u3001\u5b89\u88dd telnet<\/h2>\n<p>\u5728 CentOS 6.x \u7cfb\u7d71\u4e2d\uff0ctelnet \u5ba2\u6236\u7aef\u4e26\u4e0d\u6703\u9810\u8a2d\u5b89\u88dd\uff0c\u56e0\u6b64\u9700\u8981\u624b\u52d5\u5b89\u88dd\u3002\u4ee5\u4e0b\u662f\u5b89\u88dd telnet \u7684\u6b65\u9a5f\uff1a<\/p>\n<pre><code>sudo yum install telnet<\/code><\/pre>\n<p>\u57f7\u884c\u4e0a\u8ff0\u547d\u4ee4\u5f8c\uff0c\u7cfb\u7d71\u6703\u81ea\u52d5\u4e0b\u8f09\u4e26\u5b89\u88dd telnet \u5ba2\u6236\u7aef\u3002\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u4f86\u78ba\u8a8d telnet \u662f\u5426\u5b89\u88dd\u6210\u529f\uff1a<\/p>\n<pre><code>telnet<\/code><\/pre>\n<p>\u5982\u679c\u986f\u793a\u51fa telnet \u7684\u4f7f\u7528\u8aaa\u660e\uff0c\u5247\u8868\u793a\u5b89\u88dd\u6210\u529f\u3002<\/p>\n<h2 id=\"%e4%ba%8c%e3%80%81%e4%bd%bf%e7%94%a8-telnet-%e9%80%a3%e6%8e%a5%e5%88%b0%e9%81%a0%e7%a8%8b%e4%b8%bb%e6%a9%9f-MTmZoTijTG\">\u4e8c\u3001\u4f7f\u7528 telnet \u9023\u63a5\u5230\u9060\u7a0b\u4e3b\u6a5f<\/h2>\n<p>\u5b89\u88dd\u5b8c\u6210\u5f8c\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528 telnet \u9023\u63a5\u5230\u9060\u7a0b\u4e3b\u6a5f\u3002\u57fa\u672c\u7684\u547d\u4ee4\u683c\u5f0f\u5982\u4e0b\uff1a<\/p>\n<pre><code>telnet [\u4e3b\u6a5f\u540d\u6216IP\u5730\u5740] [\u7aef\u53e3\u865f]<\/code><\/pre>\n<p>\u4f8b\u5982\uff0c\u5982\u679c\u60a8\u60f3\u9023\u63a5\u5230 IP \u5730\u5740\u70ba 192.168.1.1 \u7684\u4e3b\u6a5f\uff0c\u4e26\u4f7f\u7528\u9810\u8a2d\u7684 23 \u865f\u7aef\u53e3\uff0c\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre><code>telnet 192.168.1.1<\/code><\/pre>\n<p>\u5982\u679c\u60a8\u9700\u8981\u9023\u63a5\u5230\u7279\u5b9a\u7684\u7aef\u53e3\uff0c\u4f8b\u5982 80 \u7aef\u53e3\uff08HTTP\uff09\uff0c\u53ef\u4ee5\u9019\u6a23\u57f7\u884c\uff1a<\/p>\n<pre><code>telnet 192.168.1.1 80<\/code><\/pre>\n<h2 id=\"%e4%b8%89%e3%80%81telnet-%e7%9a%84%e5%9f%ba%e6%9c%ac%e6%93%8d%e4%bd%9c-MTmZoTijTG\">\u4e09\u3001telnet \u7684\u57fa\u672c\u64cd\u4f5c<\/h2>\n<p>\u4e00\u65e6\u6210\u529f\u9023\u63a5\u5230\u9060\u7a0b\u4e3b\u6a5f\uff0c\u60a8\u53ef\u4ee5\u958b\u59cb\u8f38\u5165\u547d\u4ee4\u3002\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u898b\u7684 telnet \u64cd\u4f5c\uff1a<\/p>\n<ul>\n<li><strong>\u767c\u9001 HTTP \u8acb\u6c42\uff1a<\/strong>\u5982\u679c\u60a8\u9023\u63a5\u5230 80 \u7aef\u53e3\uff0c\u53ef\u4ee5\u624b\u52d5\u767c\u9001 HTTP \u8acb\u6c42\u3002\u4f8b\u5982\uff1a<\/li>\n<\/ul>\n<pre><code>GET \/ HTTP\/1.1\nHost: 192.168.1.1\n<\/code><\/pre>\n<p>\u8acb\u6ce8\u610f\uff0c\u8acb\u6c42\u4e4b\u9593\u9700\u8981\u6709\u4e00\u500b\u7a7a\u884c\u3002<\/p>\n<ul>\n<li><strong>\u9000\u51fa telnet\uff1a<\/strong>\u8981\u9000\u51fa telnet\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre><code>quit<\/code><\/pre>\n<h2 id=\"%e5%9b%9b%e3%80%81telnet-%e7%9a%84%e5%ae%89%e5%85%a8%e6%80%a7%e8%80%83%e9%87%8f-MTmZoTijTG\">\u56db\u3001telnet \u7684\u5b89\u5168\u6027\u8003\u91cf<\/h2>\n<p>\u96d6\u7136 telnet \u662f\u4e00\u500b\u65b9\u4fbf\u7684\u5de5\u5177\uff0c\u4f46\u5b83\u7684\u5b89\u5168\u6027\u76f8\u5c0d\u8f03\u4f4e\u3002\u56e0\u70ba telnet \u5728\u50b3\u8f38\u904e\u7a0b\u4e2d\u4e0d\u6703\u5c0d\u6578\u64da\u9032\u884c\u52a0\u5bc6\uff0c\u9019\u610f\u5473\u8457\u4efb\u4f55\u5728\u7db2\u7d61\u4e0a\u50b3\u8f38\u7684\u6578\u64da\u90fd\u53ef\u80fd\u88ab\u6514\u622a\u3002\u56e0\u6b64\uff0c\u5728\u751f\u7522\u74b0\u5883\u4e2d\uff0c\u5efa\u8b70\u4f7f\u7528\u66f4\u5b89\u5168\u7684\u66ff\u4ee3\u65b9\u6848\uff0c\u5982 SSH\uff08Secure Shell\uff09\u3002<\/p>\n<h2 id=\"%e4%ba%94%e3%80%81%e7%b8%bd%e7%b5%90-MTmZoTijTG\">\u4e94\u3001\u7e3d\u7d50<\/h2>\n<p>\u5728 CentOS 6.x \u7cfb\u7d71\u4e2d\u5b89\u88dd\u548c\u4f7f\u7528 telnet \u662f\u4e00\u500b\u76f8\u5c0d\u7c21\u55ae\u7684\u904e\u7a0b\u3002\u96d6\u7136 telnet \u5728\u67d0\u4e9b\u60c5\u6cc1\u4e0b\u4ecd\u7136\u6709\u5176\u7528\u9014\uff0c\u4f46\u7531\u65bc\u5176\u5b89\u5168\u6027\u554f\u984c\uff0c\u5efa\u8b70\u5728\u53ef\u80fd\u7684\u60c5\u6cc1\u4e0b\u4f7f\u7528\u66f4\u5b89\u5168\u7684\u5de5\u5177\u3002\u5c0d\u65bc\u9700\u8981\u9032\u884c\u9060\u7a0b\u7ba1\u7406\u7684\u7528\u6236\uff0c\u9078\u64c7\u5408\u9069\u7684\u5de5\u5177\u81f3\u95dc\u91cd\u8981\u3002<\/p>\n<p>\u5982\u679c\u60a8\u6b63\u5728\u5c0b\u627e\u9ad8\u6548\u7684 <a href=\"https:\/\/server.hk\">\u9999\u6e2fVPS<\/a> \u89e3\u6c7a\u65b9\u6848\uff0cServer.HK \u63d0\u4f9b\u591a\u7a2e\u9078\u64c7\uff0c\u6eff\u8db3\u4e0d\u540c\u7528\u6236\u7684\u9700\u6c42\u3002\u7121\u8ad6\u662f\u4f3a\u670d\u5668\u7ba1\u7406\u9084\u662f\u61c9\u7528\u90e8\u7f72\uff0c\u6211\u5011\u7684\u670d\u52d9\u90fd\u80fd\u70ba\u60a8\u63d0\u4f9b\u652f\u6301\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5b78\u7fd2\u5982\u4f55\u5728 CentOS 6.x \u7cfb\u7d71\u4e0a\u5b89\u88dd telnet \u547d\u4ee4\u53ca\u5176\u4f7f\u7528\u65b9\u6cd5\uff0c\u7c21\u55ae\u6b65\u9a5f\u52a9\u4f60\u8f15\u9b06\u9023\u63a5\u9060\u7aef\u4e3b\u6a5f\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4924],"tags":[],"class_list":["post-42686","post","type-post","status-publish","format-standard","hentry","category-setup-tutorials"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42686","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=42686"}],"version-history":[{"count":1,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42686\/revisions"}],"predecessor-version":[{"id":42687,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/42686\/revisions\/42687"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=42686"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=42686"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=42686"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}