{"id":41,"date":"2007-07-23T00:12:17","date_gmt":"2007-07-22T16:12:17","guid":{"rendered":"http:\/\/blog.urdada.net\/2007\/06\/23\/41\/"},"modified":"2007-10-25T07:29:16","modified_gmt":"2007-10-24T23:29:16","slug":"%e6%89%93%e9%96%8b-la-fonera-%e7%9a%84-ssh-%e5%b0%81%e5%8d%b0","status":"publish","type":"post","link":"https:\/\/dada.tw\/blog\/2007\/07\/23\/41\/","title":{"rendered":"[\u7834\u89e3] \u6253\u958b La Fonera \u7684 SSH \u5c01\u5370"},"content":{"rendered":"<p>\u53bb\u5e74\u5e95\u8cb7\u4e86\u5169\u53f0 <a href=\"http:\/\/www.fon.com\/\" target=\"_blank\">La Fonera<\/a>\uff0c\u5e78\u904b\u7684\u662f\u5169\u53f0\u90fd\u662f\u7528 165\u5143\u5c31\u8cb7\u5230\u4e86\uff0c\u4f46\u4e0d\u5e78\u7684\u662f\u7576\u4e86\u767d\u8001\u9f20\uff0c\u9019\u5169\u53f0 La Fonera \u90fd\u8ddf\u6211\u7684 ADSL \u4e0d\u5408\uff0c\u6bcf\u9694\u4e00\u6bb5\u6642\u9593 WAN \u5c31\u6703\u83ab\u540d\u5176\u5999\u65b7\u7dda\uff0c\u627e\u4e0d\u51fa\u539f\u56e0\uff0c\u7d93\u904e\u534a\u5e74\u591a\u4e5f\u6c92\u6709\u4efb\u4f55\u4fee\u6b63<\/p>\n<p>\u6240\u4ee5\u53ea\u597d\u81ea\u529b\u6551\u6fdf\u4e86<\/p>\n<p>\u9996\u5148\u662f\u7834\u89e3 Fonera \u6253\u958b SSH \u7684\u5c01\u5370\uff0c\u8a73\u7d30\u7684\u8aaa\u660e\u53ef\u53c3\u8003<a href=\"http:\/\/stefans.datenbruch.de\/lafonera\/\" target=\"_blank\">\u9019\u88e1<\/a>\uff0c\u7c21\u55ae\u7684\u8aaa\u5c31\u662f\u628a Fonera \u7684DNS \u8a2d\u70ba 88.198.165.155 \u5c31\u597d\u4e86\uff0c\u91cd\u958b\u6a5f\u5f8c\u5c31\u81ea\u52d5\u6703\u958b\u555f SSH \u4e86<\/p>\n<p>\u7528 SSH Client \u9023\u7dda\u5230 192.168.10.1\uff0c\u7528 root \u767b\u5165\uff0c\u5bc6\u78bc\u5c31\u662f Web \u4ecb\u9762\u7684\u5bc6\u78bc<\/p>\n<p>\u4f46\u7e3d\u4e0d\u80fd\u628a DNS \u4e00\u76f4\u8a2d\u70ba\u9019\u500b\u5427\uff0c\u65e2\u7136\u5df2\u7d93\u6253\u958b SSH\uff0c\u5c31\u60f3\u8fa6\u6cd5\u8b93\u9019\u4ef6\u4e8b\u8b8a\u6210\u7406\u6240\u7576\u7136\u5427<\/p>\n<p>\u9996\u5148\u5148\u8b93 SSH Daemon \u5728\u958b\u6a5f\u6642\u81ea\u52d5\u8dd1\u8d77\u4f86\uff0c\u57f7\u884c\uff1a<\/p>\n<p><span class=\"postbody\">mv \/etc\/init.d\/dropbear \/etc\/init.d\/S50dropbear <\/span><\/p>\n<p>\u7136\u5f8c\u7de8\u8f2f \/etc\/firewall.user \u628a firewall \u6253\u958b\uff0c\u628a\u4e0b\u9762\u5169\u884c\u524d\u9762\u4e95\u5b57\u865f\u522a\u9664<\/p>\n<p>iptables -t nat -A prerouting_rule -i $WAN -p tcp &#8211;dport 22 -j ACCEPT<br \/>\niptables -A input_rule -i $WAN -p tcp &#8211;dport 22 -j ACCEPT<\/p>\n<p><span class=\"postbody\">\u6700\u5f8c\u4e00\u500b\u6b65\u9a5f\u5c31\u662f\u4fee\u6539\/bin\/thinclient\uff0c\u8b93 La Fonera \u4e0d\u6703\u518d\u81ea\u52d5\u66f4\u65b0\uff0c\u628a\u6700\u5f8c\u4e00\u884c\u52a0\u4e0a\u4e95\u5b57\u865f\u5373\u53ef\uff1a<\/span><\/p>\n<p>#. \/tmp\/.thinclient.sh<\/p>\n<p>\u63a5\u4e0b\u4f86\u5c31\u53ef\u4ee5\u628a DNS \u6539\u56de\u4f60\u559c\u6b61\u7684\uff0c\u91cd\u958b\u6a5f\u4e5f\u4e0d\u6703\u6709\u5f71\u97ff\u4e86<\/p>\n<p>\u7834\u89e3 La Fonera \u4e4b\u5f8c\uff0c\u5176\u5be6\u6211\u7684\u76ee\u7684\u53ea\u662f\u5e0c\u671b\u80fd\u66f4\u5bb9\u6613 reset La Fonera \u7684 WAN port \u800c\u5df2\uff0c\u56e0\u70ba\u6bcf\u6b21\u6211\u7684\u7db2\u8def\u4e0d\u80fd\u52d5\u4e86\uff0c\u6211\u53ea\u8981\u7528 SSH \u9023\u9032\u53bb La Fonera\uff0c\u57f7\u884c\u4e0b\u5217\u547d\u4ee4<\/p>\n<p>ifconfig eth0 up<br \/>\nifconfig eth0 down<br \/>\nifup wan<\/p>\n<p>\u4e00\u77ac\u9593\u6211\u7684\u7db2\u8def\u5c31\u6062\u5fa9\u6b63\u5e38\u4e86 orz<\/p>\n<p>\u6700\u5f8c\uff0c\u5982\u679c\u5fd8\u8a18 La Fonera \u7684\u5bc6\u78bc\u6216\u8005\u60f3\u8981\u8b93 La Fonera \u6062\u5fa9\u539f\u72c0\uff0c\u5c31\u62ff\u6839\u539f\u5b50\u7b46\uff0c\u6233 La Fonera \u5e95\u90e8\u7684 reset \u5b54 30 \u79d2\uff0c\u7136\u5f8c\u91cd\u65b0\u958b\u6a5f\u5373\u53ef<\/p>\n<p>Reset \u4e4b\u5f8c\u7121\u7dda\u7684 SSID \u6703\u8b8a\u56de My Place\uff0c\u52a0\u5bc6\u65b9\u5f0f\u6703\u8b8a\u56de WPA\uff0c\u5bc6\u78bc\u5247\u8b8a\u6210\u5370\u5728\u5e95\u90e8\u7684\u5e8f\u865f(SN)\u3002Web \u4ecb\u9762\u7684\u5e33\u865f\u53ca\u5bc6\u78bc\u90fd\u6703\u56de\u5fa9\u6210 admin<\/p>\n<p>2007\/10\/25 updated: This method works for 0.7.2 r2 too \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u53bb\u5e74\u5e95\u8cb7\u4e86\u5169\u53f0 La Fonera\uff0c\u5e78\u904b\u7684\u662f\u5169\u53f0\u90fd\u662f\u7528 165\u5143\u5c31\u8cb7\u5230\u4e86\uff0c\u4f46\u4e0d\u5e78\u7684\u662f\u7576\u4e86\u767d\u8001\u9f20\uff0c\u9019\u5169\u53f0 La  [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15],"tags":[],"class_list":["post-41","post","type-post","status-publish","format-standard","hentry","category-hardware"],"views":6090,"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/pubdi-F","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":60,"url":"https:\/\/dada.tw\/blog\/2007\/11\/01\/60\/","url_meta":{"origin":41,"position":0},"title":"La Fonera 0.7.2 r2 \u5347\u7d1a+SSH\u7834\u89e3","author":"dada","date":"2007-11-01","format":false,"excerpt":"[update on Dec 5, 2007] Warning: kolofonium may no\u2026","rel":"","context":"\u5728\u300c\u786c\u9ad4\u300d\u4e2d","block_context":{"text":"\u786c\u9ad4","link":"https:\/\/dada.tw\/blog\/category\/comp\/hardware\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":75,"url":"https:\/\/dada.tw\/blog\/2008\/01\/07\/75\/","url_meta":{"origin":41,"position":1},"title":"SSH Keyboard-Interactive Authentication","author":"dada","date":"2008-01-07","format":false,"excerpt":"\u6709\u4e9b SSH clients \uff08\u4f8b\u5982: SecureCRT\uff09\u5141\u8a31\u4f7f\u7528\u8005\u300c\u5132\u5b58\u300d\u5bc6\u78bc\uff0c\u9019\u5c0d\u7cfb\u7d71\u5b89\u5168\u662f\u500b\u2026","rel":"","context":"\u5728\u300c\u8cc7\u8a0a\u5b89\u5168\u300d\u4e2d","block_context":{"text":"\u8cc7\u8a0a\u5b89\u5168","link":"https:\/\/dada.tw\/blog\/category\/comp\/security\/"},"img":{"alt_text":"SSH keyboard-interactive authentication","src":"https:\/\/i0.wp.com\/farm3.static.flickr.com\/2181\/2174161870_58d7f2dbaa.jpg?resize=350%2C200","width":350,"height":200},"classes":[]},{"id":36,"url":"https:\/\/dada.tw\/blog\/2005\/03\/25\/36\/","url_meta":{"origin":41,"position":2},"title":"\u4f7f\u7528 SSH \u914d\u5408\u6191\u8b49\u4f86\u9060\u7aef\u8907\u88fd\u6a94\u6848 (scp)","author":"dada","date":"2005-03-25","format":false,"excerpt":"\u4ee5\u4e0b\u6574\u7406 UNIX \u7cfb\u7d71\u4e0a\u9762\u4f7f\u7528 SSH \u914d\u5408\u6191\u8b49\u4f86\u9060\u7aef\u8907\u88fd\u6a94\u6848 \u5047\u8a2d\u6709\u4e00\u53f0\u4e3b\u6a5f\u53eb\u505a X\uff0c\u591a\u53f0\u8981\u88ab\u8907\u2026","rel":"","context":"\u5728\u300c\u8cc7\u8a0a\u5b89\u5168\u300d\u4e2d","block_context":{"text":"\u8cc7\u8a0a\u5b89\u5168","link":"https:\/\/dada.tw\/blog\/category\/comp\/security\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":73,"url":"https:\/\/dada.tw\/blog\/2008\/01\/02\/73\/","url_meta":{"origin":41,"position":3},"title":"SSH Escape Character","author":"dada","date":"2008-01-02","format":false,"excerpt":"SSH client \u6709\u4e00\u500b Escape Character (\u8df3\u812b\u5b57\u5143)\uff0c\u4e8b\u5be6\u4e0a rsh\/rlo\u2026","rel":"","context":"\u5728\u300c\u8edf\u9ad4\u300d\u4e2d","block_context":{"text":"\u8edf\u9ad4","link":"https:\/\/dada.tw\/blog\/category\/comp\/software\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":70,"url":"https:\/\/dada.tw\/blog\/2008\/01\/03\/70\/","url_meta":{"origin":41,"position":4},"title":"SSH2 vs OpenSSH","author":"dada","date":"2008-01-03","format":false,"excerpt":"\u5e38\u898b\u7684 SSH Implementation \u6709\u5169\u7a2e\uff0cssh.com \u7684 SSH \u4ee5\u53ca OpenSS\u2026","rel":"","context":"\u5728\u300c\u8cc7\u8a0a\u5b89\u5168\u300d\u4e2d","block_context":{"text":"\u8cc7\u8a0a\u5b89\u5168","link":"https:\/\/dada.tw\/blog\/category\/comp\/security\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":35,"url":"https:\/\/dada.tw\/blog\/2005\/03\/29\/35\/","url_meta":{"origin":41,"position":5},"title":"\u4f7f\u7528 SSH \u914d\u5408\u6191\u8b49\u4f86\u9060\u7aef\u5099\u4efd\u6a94\u6848 (rsync)","author":"dada","date":"2005-03-29","format":false,"excerpt":"\u524d\u9762\u5beb\u4e86\u4e00\u7bc7\u300c\u4f7f\u7528 SSH \u914d\u5408\u6191\u8b49\u4f86\u9060\u7aef\u8907\u88fd\u6a94\u6848\u300d \u7c21\u4ecb\u4f7f\u7528 scp \u914d\u5408 ssh \u4f86\u9060\u7aef\u8907\u88fd\u6a94\u6848\u2026","rel":"","context":"\u5728\u300c\u8cc7\u8a0a\u5b89\u5168\u300d\u4e2d","block_context":{"text":"\u8cc7\u8a0a\u5b89\u5168","link":"https:\/\/dada.tw\/blog\/category\/comp\/security\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/posts\/41","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/comments?post=41"}],"version-history":[{"count":0,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/posts\/41\/revisions"}],"wp:attachment":[{"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/media?parent=41"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/categories?post=41"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/dada.tw\/blog\/wp-json\/wp\/v2\/tags?post=41"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}