{"id":270,"date":"2007-12-10T14:00:00","date_gmt":"2007-12-10T06:00:00","guid":{"rendered":"http:\/\/www.freemindworld.com\/blog\/2007\/071210_ssh_tunneling.shtml"},"modified":"2012-01-30T13:19:43","modified_gmt":"2012-01-30T05:19:43","slug":"071210_ssh_tunneling","status":"publish","type":"post","link":"https:\/\/www.freemindworld.com\/blog\/2007\/071210_ssh_tunneling.shtml","title":{"rendered":"\u96d5\u866b\u5c0f\u6280\uff1aSSH\u96a7\u9053"},"content":{"rendered":"<p><em>\u201c\u96d5\u866b\u5c0f\u6280\u201d\u7cfb\u5217\u6587\u7ae0\u662f\u4e00\u4e9b\u5176\u5b9e\u4e0d\u662f\u4ec0\u4e48\u65b0\u9c9c\u73a9\u610f\u4f46\u6211\u5374\u662f\u521a\u521a\u53d1\u73b0\u6216\u5b66\u4f1a\u7684\u4e1c\u897f\u3002<\/em><\/p>\n<p>\u8bbf\u95eeWikipedia\u7b49\u7f51\u7ad9\u7684\u56f0\u96be\u5df2\u7ecf\u662f\u4e00\u4e2a\u7531\u6765\u5df2\u4e45\u7684\u95ee\u9898\uff0c\u5e38\u89c4\u7684\u89e3\u51b3\u7684\u65b9\u6cd5\u65e0\u975e\u5c31\u662f\u7528\u4e00\u4e9b**\u8f6f\u4ef6\uff0c\u6bd4\u5982<a href=\"http:\/\/www.torproject.org\">Tor<\/a>\u5c31\u662f\u5176\u4e2d\u7684\u4e00\u4e2a\u51fa\u8272\u4ee3\u8868\u3002\u4e0d\u8fc7\u6211\u4e0d\u662f\u5f88\u559c\u6b22Tor\uff0c\u56e0\u4e3a\u57fa\u4e8e\u7c7b\u4f3cP2P\u8fd9\u6837\u7684\u539f\u7406\uff0c\u51b3\u5b9a\u4e86\u5b83\u4e0d\u80fd\u63d0\u4f9b\u4e00\u4e2a\u7a33\u5b9a\u7684\u94fe\u63a5\uff0c\u800c\u4e14Tor\u7684\u901f\u5ea6\u6211\u4e5f\u4e00\u76f4\u4e0d\u662f\u5f88\u6ee1\u610f\u3002\u5176\u5b83\u7684\u4e00\u4e9b\u89e3\u51b3\u65b9\u6848\u5305\u62ec\u4f7f\u7528\u7f51\u9875\u4ee3\u7406\u3001\u56fd\u5916SSL\u4ee3\u7406\u4e4b\u7c7b\u7684\u4e5f\u662f\u5404\u6709\u957f\u5904\u3001\u5404\u6709\u4e0d\u8db3\u3002<\/p>\n<p>\u5176\u5b9e\u5982\u679c\u4f60\u5728\u56fd\u5916\u53ef\u4ee5\u627e\u5230\u4e00\u53f0\u652f\u6301SSH\u767b\u5f55\uff0c\u5e76\u4e14\u53ef\u4ee5\u652f\u6301\u5916\u8fde\u7684\u4e3b\u673a\u7684\u8bdd\uff0c\u7528SSH\u96a7\u9053\u6280\u672f\u5c31\u53ef\u4ee5\u5f88\u65b9\u4fbf\u7684\u4e3a\u81ea\u5df1\u6784\u9020\u4e00\u4e2a\u52a0\u5bc6\u4e0a\u7f51\u7684\u6e20\u9053\u3002<\/p>\n<p>\u5047\u5982\u4f60\u6709\u4e00\u53f0SSH\u4e3b\u673a\u662fsomehost.org\uff0c\u7528PuTTY\u7b49\u7ec8\u7aef\u7a0b\u5e8f\u65f6\u53ea\u9700\u8f93\u5165\u8fd9\u4e2a\u4e3b\u673a\u540d\u548c\u5bf9\u5e94\u767b\u5f55\u4fe1\u606f\u5c31\u53ef\u4ee5\u8fde\u4e0a\u53bb\u3002\u8981\u5b9e\u73b0SSH\u96a7\u9053\uff0c\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u5728PuTTY\u7684Connection-&gt;SSH-&gt;Tunnels\u4e2d\u521b\u5efa\u4e00\u4e2aDynamic\u7684Foward\u7aef\u53e3\u5c31\u53ef\u4ee5\u4e86\u3002\u6bd4\u5982\uff0c\u6211\u4eec\u53ef\u4ee5\u5728Source port\u4e2d\u8f93\u51656500\uff0c\u7136\u540e\u9009Dynamic\uff0c\u518d\u70b9\u4e00\u4e0bAdd\uff0c\u5728Forwarded ports\u4e2d\u5c31\u4f1a\u51fa\u73b0\u201cD6500&amp;quot;\uff0c\u8fd9\u65f6\u96a7\u9053\u5c31\u8bbe\u7f6e\u597d\u4e86\uff0c\u5982\u679c\u4f60\u73b0\u5728\u518d\u767b\u9646\u5230\u8fd9\u53f0\u4e3b\u673a\u4e0a\uff0c\u4f60\u4e0e\u4e3b\u673a\u4e4b\u95f4\u5c31\u4f1a\u521b\u5efa\u51fa\u4e00\u6761SSH\u52a0\u5bc6\u7684\u901a\u9053\uff0c\u6240\u6709\u4f60\u53d1\u5f80\u672c\u5730 6500\u7aef\u53e3\u7684\u7684\u8bf7\u6c42\uff0c\u90fd\u4f1a\u901a\u8fc7SSH\u96a7\u9053\u4f20\u5230\u5bf9\u65b9\u4e3b\u673a\u4e0a\u518d\u53d1\u9001\u51fa\u53bb\uff0c\u5e76\u628a\u8fd4\u56de\u7684\u7ed3\u679c\u4e5f\u4ee5\u76f8\u540c\u7684\u65b9\u5f0f\u4f20\u56de\u6765\u3002<\/p>\n<div id=\"attachment_623\" style=\"width: 466px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.freemindworld.com\/blog\/2007\/071210_ssh_tunneling.shtml\/071210_ssh_tunneling\" rel=\"attachment wp-att-623\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-623\" src=\"\/\/www.freemindworld.com\/blog\/wp-content\/uploads\/2007\/12\/071210_ssh_tunneling.gif\" alt=\"PuTTY\u8bbe\u7f6e\" title=\"PuTTY\u8bbe\u7f6e\" width=\"456\" height=\"436\" class=\"size-full wp-image-623\" srcset=\"https:\/\/www.freemindworld.com\/blog\/wp-content\/uploads\/2007\/12\/071210_ssh_tunneling.gif 456w, https:\/\/www.freemindworld.com\/blog\/wp-content\/uploads\/2007\/12\/071210_ssh_tunneling-300x286.gif 300w, https:\/\/www.freemindworld.com\/blog\/wp-content\/uploads\/2007\/12\/071210_ssh_tunneling-313x300.gif 313w\" sizes=\"auto, (max-width: 456px) 100vw, 456px\" \/><\/a><p id=\"caption-attachment-623\" class=\"wp-caption-text\">PuTTY\u8bbe\u7f6e<\/p><\/div>\n<p>\u5f88\u597d\uff0c\u6700\u540e\u4e00\u6b65\u64cd\u4f5c\u5c31\u662f\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbe\u7f6e\u4ee3\u7406\u670d\u52a1\u5668\u4e86\uff0c\u8bbe\u7f6e\u4e00\u4e2aSOCKS(v5)\u4ee3\u7406\uff0c\u670d\u52a1\u5668\u5730\u5740\u7528127.0.0.1\uff0c\u7aef\u53e3\u5c31\u662f\u524d\u9762\u8bbe\u76846500\u3002\u597d\u4e86\uff0c\u5c3d\u60c5\u51b2\u6d6a\u5427\u3002<\/p>\n<p>\u5bf9\u4e8e\u7c7bUnix\u7528\u6237\uff0c\u64cd\u4f5c\u66f4\u7b80\u5355\uff0c\u76f4\u63a5ssh somehost.org -D 6500\uff0c\u8fde\u4e0a\u4e4b\u540e\u4e00\u6837\u5728\u6d4f\u89c8\u5668\u4e2d\u8bbe\u4e0a\u4ee3\u7406\u5c31\u53ef\u4ee5\u4e86\u3002<\/p>\n<p>SSH\u96a7\u9053\u5176\u5b9e\u8fd8\u53ef\u4ee5\u5728\u5f88\u591a\u9700\u8981\u7a7f\u8d8a\u9632\u706b\u5899\u7684\u60c5\u51b5\u4e0b\u63d0\u4f9b\u5e2e\u52a9\uff0c\u7559\u5f85\u8fdb\u4e00\u6b65\u53d1\u73b0\u4e86\u3002<\/p>\n<p>\u55ef\uff0cso far, so good\u3002\u4f46\u662f\u4e0d\u80fd\u5ffd\u7565\u4e86\u4e00\u4e2a\u95ee\u9898\u5c31\u662f\u54ea\u91cc\u53bb\u627e\u56fd\u5916\u652f\u6301SSH\u7684\u4e3b\u673a\u5462\uff1f\u55ef\uff0c<a href=\"http:\/\/www.red-pill.eu\/freeunix.shtml\">http:\/\/www.red-pill.eu\/freeunix.shtml<\/a>\u8fd9\u91cc\u6709\u4e00\u4e2a\u5f88\u5168\u7684\u5217\u8868\uff0c\u63d0\u4f9b\u4e86\u5f88\u591a\u7684\u514d\u8d39\u7684Shell Server\uff0c\u4e0d\u8fc7\u5176\u4e2d\u7a76\u7adf\u54ea\u4e9b\u53ef\u4ee5\u652f\u6301SSH Tunneling\u6709\u5f85\u5404\u4f4d\u81ea\u5df1\u8bd5\u9a8c\u4e86\u3002\u76ee\u524d\u6211\u5728\u7528\u7684\u662fsilenceisdefeat.org\u63d0\u4f9b\u7684\u514d\u8d39\u670d\u52a1(\u4f46\u9700\u8981\u901a\u8fc7PayPal\u6350\u8d601\u7f8e\u5143\u6216\u5199\u4f20\u7edf\u4fe1\u4ef6\u7ed9\u4ed6\u4eec\u4ee5\u8bc1\u660e\u4f60\u7684\u90ae\u653f\u5730\u5740\u662f\u6709\u6548\u7684)\uff0cOpenBSD\u4e3b\u673a\uff0c\u529f\u80fd\u6bd4\u8f83\u5168\uff0c\u751a\u81f3\u8fd8\u5305\u62ec\u4e8650M\u7684PHP\u548cMySQL\u7a7a\u95f4(MySQL\u7684\u6743\u9650\u9700\u8981\u5728\u4e0a\u9762\u73a9\u5b83\u7684\u4fc4\u7f57\u65af\u65b9\u5757\uff0c\u8fbe\u5230\u4e00\u5b9a\u6210\u7ee9\u624d\u884c)\uff0c\u4f46\u6709\u4e9b\u65f6\u6bb5\u7684\u901f\u5ea6\u4e0d\u662f\u5f88\u7406\u60f3\u3002\u5bf9\u4e8e\u81ea\u5df1\u6709\u79df\u7528\u56fd\u5916\u865a\u62df\u4e3b\u673a\u7684\u670b\u53cb\uff0c\u4e5f\u53ef\u4ee5\u81ea\u5df1\u8bd5\u9a8c\u4e00\u4e0b\u4e3b\u673a\u662f\u4e0d\u662f\u652f\u6301\uff0c\u636e\u6211\u6240\u77e5\uff0c\u5f88\u6d41\u884c\u7684DreamHost\u662f\u53ef\u4ee5\u652f\u6301\u7684\u3002<\/p>\n<p>\u6700\u540e\u987a\u4fbf\u63d0\u4e00\u4e0b<a href=\"http:\/\/www.unix-center.net\">Unix-Center<\/a>\u7f51\u7ad9\uff0c\u4e00\u5bb6\u56fd\u5185\u7684\u63d0\u4f9bUnix\u5b9e\u9a8c\u73af\u5883\u7684\u7f51\u7ad9\uff0c\u63d0\u4f9b\u4e86Intel\/AMD\/SPARC\u4e0b\u7684Solaris\u548cIntel\u4e0b\u7684Fedora,Ubuntu,FreeBSD\u4ee5\u53ca\u9f99\u82af\u4e0a\u7684Debian\u7cfb\u7edf\u7684\u5b9e\u9a8c\u73af\u5883\uff0c\u901f\u5ea6\u8fd8\u6bd4\u8f83\u7406\u60f3\uff0c\u800c\u4e14gcc\/make\/Perl\/Python\u7b49\u5f00\u53d1\u5de5\u5177\u4e5f\u5b89\u88c5\u7684\u6bd4\u8f83\u5b8c\u6574\uff0c\u6709\u65f6\u60f3\u8981\u6d4b\u8bd5\u4e86\u4e00\u4e0b\u4e00\u4e2a\u7a0b\u5e8f\u5728\u4e0d\u540c\u5e73\u53f0\u4e0a\u7684\u8868\u73b0\u6216\u662f\u6bd4\u8f83\u4e00\u4e0b\u4e0d\u540c\u53d1\u884c\u7248\u7684\u5dee\u5f02\u65f6\u8fd8\u662f\u633a\u597d\u7528\u7684\u3002\u4e0d\u8fc7Unix-Center\u7684\u4e3b\u673a\u90fd\u5728\u56fd\u5185\uff0c\u800c\u4e14\u4e0d\u5141\u8bb8\u5916\u8fde\uff0c\u6240\u4ee5\u7528\u5b83\u4eec\u662f\u4e0d\u80fd\u5b8c\u6210\u524d\u9762\u8bf4\u7684\u505a\u4ee3\u7406\u7684\u529f\u80fd\u7684\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u201c\u96d5\u866b\u5c0f\u6280\u201d\u7cfb\u5217\u6587\u7ae0\u662f\u4e00\u4e9b\u5176\u5b9e\u4e0d\u662f\u4ec0\u4e48\u65b0\u9c9c\u73a9\u610f\u4f46\u6211\u5374\u662f\u521a\u521a\u53d1\u73b0\u6216\u5b66\u4f1a\u7684\u4e1c\u897f\u3002 \u8bbf &hellip; <a href=\"https:\/\/www.freemindworld.com\/blog\/2007\/071210_ssh_tunneling.shtml\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[12],"tags":[],"class_list":["post-270","post","type-post","status-publish","format-standard","hentry","category-12"],"_links":{"self":[{"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/posts\/270","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/comments?post=270"}],"version-history":[{"count":0,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/posts\/270\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/media?parent=270"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/categories?post=270"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.freemindworld.com\/blog\/wp-json\/wp\/v2\/tags?post=270"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}