{"id":193,"date":"2025-01-12T20:07:09","date_gmt":"2025-01-12T12:07:09","guid":{"rendered":"http:\/\/cennum.top\/?p=193"},"modified":"2025-04-24T22:22:58","modified_gmt":"2025-04-24T14:22:58","slug":"linuxvpn","status":"publish","type":"post","link":"https:\/\/cennum.top\/index.php\/2025\/01\/12\/linuxvpn\/","title":{"rendered":"Linux\u7eafshell\u4ee3\u7406\u201cshellclash linux\u201d\uff0c\u652f\u6301Debian\/Ubuntu"},"content":{"rendered":"\n<p>shell\u4e0bLinux\u4ee3\u7406\uff0c\u652f\u6301Clash\u548cV2ray<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1\u3001\u5b89\u88c5\u73af\u5883\uff1a<\/h4>\n\n\n\n<p>\u8fd0\u884c\u5b89\u88c5\u811a\u672c\u4f1a\u7528\u5230\u7684\u5de5\u5177\uff0c\u786e\u4fdd\u5df2\u7ecf\u5b89\u88c5<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install bzip2 tar\nsudo apt-get install curl<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">2\u3001\u5b89\u88c5ShellCrash\uff1a<\/h4>\n\n\n\n<p>sudo -i #\u5207\u6362\u5230root\u7528\u6237<\/p>\n\n\n\n<p>\u5b89\u88c5\u6e90<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export url='https:\/\/fastly.jsdelivr.net\/gh\/juewuy\/ShellCrash@master' &amp;&amp; wget -q --no-check-certificate -O \/tmp\/install.sh $url\/install.sh  &amp;&amp; bash \/tmp\/install.sh &amp;&amp; source \/etc\/profile &amp;&gt; \/dev\/null<\/code><\/pre>\n\n\n\n<p>\u5907\u7528\u5b89\u88c5\u6e90\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>export url='https:\/\/gh.jwsc.eu.org\/master' &amp;&amp; bash -c \"$(curl -kfsSl $url\/install.sh)\" &amp;&amp; source \/etc\/profile &amp;&gt; \/dev\/null<\/code><\/pre>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6309\u7167\u7a0b\u5e8f\u6307\u5f15\u5b89\u88c5\uff0c\u7136\u540e\u5bfc\u5165\u4f60\u7684\u8ba2\u9605\u94fe\u63a5<\/p>\n\n\n\n<p>\u518d\u653e\u884c\u7aef\u53e3<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>iptables -I INPUT -p tcp --dport 9999 -j ACCEPT<\/code><\/pre>\n\n\n\n<p>\u6216\u8005\u5173\u95ed\u9632\u706b\u5899<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>ufw disable<\/code><\/pre>\n\n\n\n<p>\u5728\u7ec8\u7aef\u4f7f\u7528\u201csudo crash\u201d\u53ef\u4ee5\u6253\u5f00\u63a7\u5236\u9875\u9762<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.\u9762\u677f\u914d\u7f6e<\/h4>\n\n\n\n<p>\u63a5\u4e0b\u6765\u6d4f\u89c8\u5668\u6253\u5f00Clash\u7ba1\u7406\u5730\u5740\uff08\u5c06IP\u66ff\u6362\u6210\u81ea\u5df1\u670d\u52a1\u5668IP\uff09\uff1a<a href=\"http:\/\/192.168.1.1:9999\/ui\">http:\/\/192.168.1.1:9999\/ui<\/a><\/p>\n\n\n\n<p>\u8fdb\u53bb\u4e4b\u540e\u9009\u62e9\u4e00\u4e2a\u9762\u677f\u6253\u5f00<\/p>\n\n\n\n<p>\u8f93\u5165\u5730\u5740\uff08\u5c06IP\u66ff\u6362\u6210\u81ea\u5df1\u670d\u52a1\u5668IP\uff09\uff1a<a href=\"http:\/\/192.168.1.1:9999\/ui\">http:\/\/192.168.1.1:9999<\/a><\/p>\n\n\n\n<p>\u9ed8\u8ba4\u6ca1\u6709\u5bc6\u7801<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>\u6d4b\u901f<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt install speedtest-cli<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">\u5e38\u89c1\u95ee\u9898\uff1a<\/h3>\n\n\n\n<p>\u5728\u8fde\u63a5SSH\u65f6\u63d0\u793a\u7aef\u53e322:\u8fde\u63a5\u88ab\u62d2\u7edd\uff1assh: connect to host 192.168.1.1 port 22: Connection refused<br>\u8bf7\u5b89\u88c5SSH\u670d\u52a1\uff0c\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5\uff1a<br>Debian\/Ubuntu\uff1asudo apt-get install openssh-server<br>CentOS\/RHEL\uff1asudo yum install openssh-server<\/p>\n\n\n\n<p>\u672c\u6559\u7a0b\u4f7f\u7528\u7684\u547d\u4ee4\uff0c\u4f7f\u7528\u7684\u662fUbtuntu\/Debian\u7cfb\u7edf\uff0c\u5982\u679c\u4f60\u4f7f\u7528\u7684\u662fCentOS\u6216\u8005\u5176\u5b83\uff0c\u5c31\u5207\u6362\u5bf9\u5e94\u7684\u547d\u4ee4\u3002<br>\u53e6\u5916 ShellCrash \u5b89\u88c5\u6e90\u662f\u901a\u7528\u7684<\/p>\n","protected":false},"excerpt":{"rendered":"<p>shell\u4e0bLinux\u4ee3\u7406\uff0c\u652f\u6301Clash\u548cV2r &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,3],"tags":[15],"class_list":["post-193","post","type-post","status-publish","format-standard","hentry","category-linux","category-3","tag-15"],"_links":{"self":[{"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/posts\/193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/comments?post=193"}],"version-history":[{"count":8,"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/posts\/193\/revisions"}],"predecessor-version":[{"id":347,"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/posts\/193\/revisions\/347"}],"wp:attachment":[{"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/media?parent=193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/categories?post=193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cennum.top\/index.php\/wp-json\/wp\/v2\/tags?post=193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}