{"id":28,"date":"2021-07-02T17:24:50","date_gmt":"2021-07-02T09:24:50","guid":{"rendered":"http:\/\/szx622.top\/?p=28"},"modified":"2021-07-06T19:34:31","modified_gmt":"2021-07-06T11:34:31","slug":"%e5%8f%8d%e5%90%91ssh%e8%ae%bf%e9%97%ae","status":"publish","type":"post","link":"https:\/\/szx622.top\/?p=28","title":{"rendered":"\u53cd\u5411ssh\u8bbf\u95ee"},"content":{"rendered":"\n<p>\u901a\u8fc7ssh\u5b9e\u73b0\u7aef\u53e3\u7684\u53cd\u5411\u8f6c\u53d1\uff0c\u53ef\u4ee5\u901a\u8fc7ssh\u5b9e\u73b0\u5185\u7f51\u673a\u5668\u76f4\u63a5\u5728\u516c\u7f51\u4e0a\u88abssh\u8bbf\u95ee<\/p>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e00\u3001\u57fa\u672c\u60c5\u51b5<\/h1>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u73af\u5883\u4ecb\u7ecd\uff1a<\/strong><\/li><\/ul>\n\n\n\n<p>&#8211; hostA 192.168.20.1\uff08\u5bb6\u7528\u4e3b\u673a\uff09<\/p>\n\n\n\n<p>&#8211; hostB 139.224.10.45 (\u963f\u91cc\u4e91\u670d\u52a1\u5668)<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><strong>\u76ee\u7684\uff1a<\/strong>\u4e3a\u4e86\u5b9e\u73b0\u5728\u5916\u7f51\u80fd\u591f\u4e3b\u52a8\u8bbf\u95ee\u5230\u5bb6\u7528\u7f51\u7edc\u4e2d\u7684\u4e2a\u4eba\u7535\u8111\u3002<\/li><\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e8c\u3001ssh\u547d\u4ee4\u4f7f\u7528<\/h1>\n\n\n\n<ul class=\"wp-block-list\"><li>ssh\u76f8\u5173\u53c2\u6570 &nbsp; -D [bind_address:]port<br>\u3000\u3000\u3000\u3000\u3000\u3000\u6307\u5b9a\u4e00\u4e2a\u672c\u5730\u52a8\u6001\u5e94\u7528\u5c42\u7aef\u53e3\u505a\u8f6c\u53d1\u7aef\u53e3\u3002\u5de5\u4f5c\u65b9\u5f0f\u662f\u5206\u914d\u4e00\u4e2a\u5957\u63a5\u5b57\u76d1\u542c\u5728\u6b64\u7aef\u53e3\uff0c\u5f53\u76d1\u542c\u5230\u6b64\u7aef\u53e3\u6709\u8fde\u63a5\u65f6\uff0c\u6b64\u8fde\u63a5\u4e2d\u7684\u6570\u636e\u5c06\u901a\u8fc7\u5b89\u5168\u96a7\u9053\u8f6c\u53d1\u5230server\u7aef\uff0cserver\u7aef\u518d\u548c\u76ee\u7684\u5730(\u7aef\u53e3)\u5efa\u7acb\u8fde\u63a5\uff0c\u76ee\u7684\u5730(\u7aef\u53e3)\u7531\u5e94\u7528\u5c42\u534f\u8bae\u51b3\u5b9a\u3002\u76ee\u524d\u652fSOCK4\u548cSOCK5\u4e24\u79cd\u534f\u8bae\uff0c\u5e76\u4e14SSH\u5c06\u626e\u6f14SOCKS\u670d\u52a1\u7aef\u89d2\u8272\u3002<br>&nbsp; &nbsp; &nbsp; &nbsp; \u53ea\u6709root\u7528\u6237\u53ef\u4ee5\u5f00\u542f\u7279\u6743\u7aef\u53e3\u3002\u52a8\u6001\u8f6c\u53d1\u7aef\u53e3\u4e5f\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u3002<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u8f6c\u53d1\u7aef\u53e3\u5c06\u7ed1\u5b9a\u5728GatewayPorts\u6307\u4ee4\u6307\u5b9a\u7684\u5730\u5740\u4e0a\uff0c\u4f46\u662f\u53ef\u4ee5\u663e\u5f0f\u6307\u5b9abind_address\uff0c\u5982\u679cbind_address\u8bbe\u7f6e\u4e3a&#8221;localhost&#8221;\uff0c\u5219\u8f6c\u53d1\u7aef\u53e3\u5c06\u7ed1\u5b9a\u5728\u56de\u73af\u5730\u5740\u4e0a\uff0c\u5982\u679cbind_address\u4e0d\u8bbe\u7f6e\u6216\u8bbe\u7f6e\u4e3a&#8221;*&#8221;\uff0c\u5219\u8f6c\u53d1\u7aef\u53e3\u7ed1\u5b9a\u5728\u6240\u6709\u7f51\u8def\u63a5\u53e3\u4e0a\u3002<br>&nbsp; &nbsp;<br>&nbsp; -E log_file<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u5c06debug\u65e5\u5fd7\u5199\u5165\u5230log_file\u4e2d\uff0c\u800c\u4e0d\u662f\u9ed8\u8ba4\u7684\u6807\u51c6\u9519\u8bef\u8f93\u51fastderr\u3002<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br>-f &nbsp; &nbsp; \u8bf7\u6c42ssh\u5728\u5de5\u4f5c\u5728\u540e\u53f0\u6a21\u5f0f\u3002\u8be5\u9009\u9879\u9690\u542b\u4e86&#8221;-n&#8221;\u9009\u9879\uff0c\u6240\u4ee5\u6807\u51c6\u8f93\u5165\u5c06\u53d8\u4e3a\/dev\/null\u3002<br><br>&nbsp; -G &nbsp; &nbsp; \u4f7f\u7528\u8be5\u9009\u9879\u5c06\u4f7f\u5f97ssh\u5728\u5339\u914d\u5b8cHost\u540e\u5c06\u8f93\u51fa\u4e0e\u4e4b\u5bf9\u5e94\u7684\u914d\u7f6e\u9009\u9879\uff0c\u7136\u540e\u9000\u51fa<br>\u200b<br>&nbsp; -g &nbsp; &nbsp; \u5141\u8bb8\u8fdc\u7a0b\u4e3b\u673a\u8fde\u63a5\u5230\u672c\u5730\u8f6c\u53d1\u7aef\u53e3\u4e0a\u3002<br>&nbsp; &nbsp;<br>&nbsp; -N &nbsp; &nbsp; \u660e\u786e\u8868\u793a\u4e0d\u6267\u884c\u8fdc\u7a0b\u547d\u4ee4\u3002\u4ec5\u4f5c\u7aef\u53e3\u8f6c\u53d1\u65f6\u6bd4\u8f83\u6709\u7528\u3002<br>&nbsp; &nbsp;<br>&nbsp; -q &nbsp; &nbsp; \u9759\u9ed8\u6a21\u5f0f\u3002\u5927\u591a\u6570\u8b66\u544a\u4fe1\u606f\u5c06\u4e0d\u8f93\u51fa\u3002<br>&nbsp; &nbsp;<br>&nbsp; -R [bind_address:]port:host:hostport<br>&nbsp; -R [bind_address:]port:local_socket<br>&nbsp; -R remote_socket:host:hostport<br>&nbsp; -R remote_socket:local_socket<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u5bf9\u8fdc\u7a0b(server\u7aef)\u6307\u5b9a\u7684TCP\u7aef\u53e3port\u7684\u8fde\u63a5\u90fd\u5c31\u5c06\u8f6c\u53d1\u5230\u672c\u5730\u4e3b\u673a\u548c\u7aef\u53e3\u4e0a\uff0c\u5de5\u4f5c\u65b9\u5f0f\u662f\u5728\u8fdc\u7aef(server)\u5206\u914d\u4e00\u4e2a\u5957\u63a5\u5b57socket\u76d1\u542cTCP\u7aef\u53e3\u3002\u5f53\u76d1\u542c\u5230\u6b64\u7aef\u53e3\u6709\u8fde\u63a5\u65f6\uff0c\u8fde\u63a5\u5c06\u901a\u8fc7\u5b89\u5168\u96a7\u9053\u8f6c\u53d1\u7ed9\u672c\u5730\uff0c\u7136\u540e\u4ece\u672c\u5730\u4e3b\u673a\u5efa\u4e00\u6761\u5230host:hostport\u7684\u8fde\u63a5\u3002\u7aef\u53e3\u8f6c\u53d1\u4e5f\u53ef\u4ee5\u5728\u914d\u7f6e\u6587\u4ef6\u4e2d\u6307\u5b9a\u3002\u53ea\u6709root\u7528\u6237\u624d\u80fd\u8f6c\u53d1\u7279\u6743\u7aef\u53e3(\u5c0f\u4e8e1024)\u3002<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u9ed8\u8ba4\u8fdc\u7a0b(server)\u5957\u63a5\u5b57\u88ab\u7ed1\u5b9a\u5728\u56de\u73af\u5730\u5740\u4e0a\u3002\u4f46\u662f\uff0c\u663e\u5f0f\u6307\u5b9a\u7684bind_address\u53ef\u4ee5\u7528\u4e8e\u7ed1\u5b9a\u5957\u63a5\u5b57\u5230\u6307\u5b9a\u7684\u5730\u5740\u4e0a\u3002\u5982\u679c\u4e0d\u8bbe\u7f6ebind_address\u6216\u8bbe\u7f6e\u4e3a&#8221;*&#8221;\u5219\u8868\u793a\u5957\u63a5\u5b57\u76d1\u542c\u5728\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u4e0a\u3002<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u53ea\u6709\u5f53\u8fdc\u7a0b(server)\u4e3b\u673a\u7684GatewayPorts\u9009\u9879\u5f00\u542f\u65f6\uff0c\u6307\u5b9a\u7684bind_address\u624d\u80fd\u751f\u6548\u3002(\u89c1sshd_config(5))\u3002<br>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u5982\u679cport\u503c\u4e3a0\uff0c\u8fdc\u7a0b\u4e3b\u673a(server)\u76d1\u542c\u7684\u7aef\u53e3\u5c06\u88ab\u52a8\u6001\u5206\u914d\uff0c\u5e76\u4e14\u5728\u8fd0\u884c\u65f6\u62a5\u544a\u7ed9\u5ba2\u6237\u7aef\u3002<\/li><li>\u5177\u4f53\u547d\u4ee4<\/li><\/ul>\n\n\n\n<p><code>ssh -fNR dport:localhost:sport user@dip -p port<\/code><\/p>\n\n\n\n<p><code>ssh -fNR 4444:localhost:22 root@10.21.0.81 -p 256<\/code><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u89e3\u6790\uff1a<ul><li>\u529f\u80fd\uff1a\u5728\u8fdc\u7a0b\u4e3b\u673a<em>10.21.0.81\uff08dip\uff09<\/em>\u4e0a\u6253\u5f00<em>4444\uff08dport\uff09<\/em>\u7aef\u53e3\uff0c\u8fdc\u7a0b\u4e3b\u673a\u53ef\u901a\u8fc7\u8bbf\u95ee\u672c\u673a\u76844444\u7aef\u53e3\u8bbf\u95ee<em>localhost<\/em>\u6e90\u4e3b\u673a\u7684\u5bf9\u5e94\u7aef\u53e3<\/li><li>\u8be6\u89e3\uff1a<ul><li>-f \u7528\u4e8e\u4f7f\u7ed9\u547d\u4ee4\u4fdd\u6301\u540e\u53f0\u8fd0\u884c\uff0c-N\u4e0d\u5411\u76ee\u6807\u53d1\u9001\u4efb\u4f55\u547d\u4ee4<\/li><li>-R [bind_address:]port:host:hostport \u683c\u5f0f\uff1a \u8fdc\u7aef\u5730\u5740:\u5e0c\u671b\u8fdc\u7aef\u5f00\u653e\u7684\u7aef\u53e3:\u672c\u673a\u5730\u5740:\u672c\u673assh\u7684\u7aef\u53e3 \u3002\u8fdc\u7aef\u5730\u5740\u53ef\u4ee5\u7701\u7565\uff0c\u56e0\u4e3a\u540e\u9762\u4f1a\u6709\u8fdc\u7aef\u7684\u8bbf\u95ee\u5730\u5740\u3002\u8fdc\u7aef\u5730\u5740\u7aef\u53e3\u3001\u672c\u5730\u5730\u5740\u7aef\u53e3\u90fd\u53ef\u4ee5\u7528\u5957\u63a5\u5b57\u4ee3\u66ff\u3002\u8fd9\u4e2a-R\u53c2\u6570\u5728\u8fde\u63a5\u8fdc\u7aef\u673a\u5668\u7684\u540c\u65f6\uff0c\u5bf9\u8fdc\u7aef\u673a\u5668\u505a\u4e86\u8fd9\u6837\u7684\u8bf7\u6c42\uff1a\u5728localhost\u7aef\u53e34444\u4e0a\u76d1\u542c\uff0c\u5e76\u5c06\u5728\u6b64\u63a5\u6536\u5230\u7684\u6570\u636e\u5305\u901a\u8fc7\u6211\u4eec\u8fd9\u4e2assh\u8fde\u63a5\u8f6c\u53d1\u7ed9\u6211\u3002\u8fdc\u7aef\u6309\u7167\u8be5\u8bf7\u6c42\u6267\u884c\u662fssh\u534f\u8bae\u5141\u8bb8\u7684\uff0c\u5728\u8fdc\u7aef\u673a\u5668\u4e0a4444\u7aef\u53e3\u76d1\u542c\u7684\u4ecd\u7136\u662fsshd\u8fdb\u7a0b\uff0c\u5b83\u53ef\u4ee5\u51b3\u5b9a\u5c06\u6570\u636e\u5305\u7528sshd\u4e0b\u7684\u54ea\u4e2a\u7ebf\u7a0b\u8fdb\u884c\u5904\u7406\u3002\u5f53\u7136\uff0c\u6b64\u540e\u53d1\u5f80\u8fdc\u7aef\u673a\u5668\u4e0a4444\u7aef\u53e3\u7684\u6570\u636e\u90fd\u4f1a\u88absshd\u8fdb\u7a0b\u6536\u5230\uff0c\u5e76\u7531\u672c\u5730\u4e0e\u8fdc\u7aef\u7684ssh\u901a\u9053\u53d1\u9001\u7ed9\u672c\u5730\u673a\u5668\u3002\u53e6\u5916\uff0c\u672c\u5730\u673a\u5668\u6536\u5230\u8fd9\u4e2a\u6570\u636e\u540e\uff0c\u8ba4\u4e3a\u8fd9\u4e2a\u6570\u636e\u662f\u53d1\u7ed922\u53f7\u7aef\u53e3\u7684\uff0c\u5373\u672c\u5730\u673a\u5668\u4e0a\u7684ssh\u670d\u52a1\u3002\u6574\u4e2a\u8fc7\u7a0b\u90fd\u662f\u5728ssh\u670d\u52a1\u6846\u67b6\u4e0b\u5b8c\u6210\u7684\u3002<\/li><\/ul><\/li><\/ul><\/li><\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u4e09\u3001\u5b9e\u9a8c<\/h1>\n\n\n\n<ul class=\"wp-block-list\"><li>\u4e3b\u673aA\uff1aCentos7.6 IP\uff1a192.168.44.17 \u672c\u5730\u4e3b\u673a\u4e3b\u673aB\uff1aUbuntu18 IP\uff1a136.22.10.4 ssh\u7aef\u53e3\uff1a666 \u8fdc\u7a0b\u4e3b\u673a<ul><li>\u5728A\u4e0a\u6267\u884c\u547d\u4ee4<code>ssh -fNR 4444:localhost:22 root@136.22.10.4 -p666<\/code><\/li><li>\u67e5\u770bB\u4e0a\u7684\u7aef\u53e3\u662f\u5426\u6253\u5f00<code>ss -ntlp<\/code><\/li><li>\u5728B\u4e0assh\u6d4b\u8bd5<code>ssh root@127.0.0.1 -p4444<\/code><\/li><\/ul><\/li><li>\u6ce8\u610f\u4e8b\u9879<ul><li>\u8be5\u64cd\u4f5c\u53ea\u5141\u8bb8\u4ece\u672c\u673a\u8bbf\u95ee127.0.0.1\u5730\u5740\u7684\u5bf9\u5e94\u7aef\u53e3\u5b9e\u73b0<\/li><li>\u5173\u95ed\u8fde\u63a5\uff0c\u901a\u8fc7kill\u6389\u8fdc\u7a0b\u5bf9\u5e94\u7aef\u53e3\u4e0b\u7684sshd\u8fdb\u7a0b<\/li><\/ul><\/li><\/ul>\n\n\n\n<h1 class=\"wp-block-heading\">\u56db\u3001\u6269\u5c55<\/h1>\n\n\n\n<h2 class=\"wp-block-heading\">4.1 \u5b9e\u73b0\u7b2c\u4e09\u65b9\u4e3b\u673a\u76f4\u63a5\u8bbf\u95ee\u672c\u5730\u4e3b\u673a<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">4.1.1 \u901a\u8fc7iptables\u8f6c\u53d1\u5b9e\u73b0\uff0c\u53c2\u8003\u547d\u4ee4\uff1a<\/h3>\n\n\n\n<p><code>iptables -t nat -A PREROUTING -p tcp -m tcp --dport 4444 -j DNAT --to-destination 127.0.0.1:4444<\/code><\/p>\n\n\n\n<p>\u8bbf\u95ee\u8fdc\u7a0b\u4e3b\u673a\u76844444\u7aef\u53e3\u65f6\uff0c\u8fdc\u7a0b\u4e3b\u673a\u4f1a\u81ea\u52a8\u8f6c\u53d1\u5230\u672c\u673a127.0.0.1\u76844444\u7aef\u53e3\u3002<\/p>\n\n\n\n<p><strong>\u6ce8\u610f\uff1a<\/strong>\u8981\u5b9e\u73b0\u8f6c\u53d1\u5230\u672c\u673a\u5730\u5740\u7684\u7aef\u53e3\uff0c\u9700\u624b\u52a8\u5f00\u542f\u672c\u5730\u8def\u7531\uff0c\u53c2\u8003\u547d\u4ee4\uff1a<\/p>\n\n\n\n<p><code>echo 1 &gt; \/proc\/sys\/net\/ipv4\/conf\/all\/route_localnet<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">4.1.2 \u914d\u7f6e\u670d\u52a1\u5668\u7aefssh<\/h3>\n\n\n\n<p>\u4fee\u6539\u516c\u7f51\u4e3b\u673a B \u7684 SSH \u914d\u7f6e\u6587\u4ef6<code>\/etc\/ssh\/sshd_config<\/code><\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">GatewayPorts yes<\/pre>\n\n\n\n<p>\u8fd9\u6837\u53ef\u4ee5\u628a\u76d1\u542c\u7684\u7aef\u53e3\u7ed1\u5b9a\u5230\u4efb\u610f IP 0.0.0.0 \u4e0a\uff0c\u5426\u5219\u53ea\u6709\u672c\u673a 127.0.0.1 \u53ef\u4ee5\u8bbf\u95ee\u3002<\/p>\n\n\n\n<p>\u91cd\u542f sshd \u670d\u52a1<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo service sshd restart<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4.2 \u5b9e\u73b0\u5176\u4ed6\u7aef\u53e3\u7684\u8f6c\u53d1<\/h2>\n\n\n\n<p>&#8211; \u4e0a\u8ff0ssh\u547d\u4ee4\uff0c\u5c06\u672c\u673a\u7aef\u53e3\u6539\u4e3a\u5176\u4ed6\u7684\u670d\u52a1\u7aef\u53e3\u65f6\uff0c\u4f9d\u7136\u80fd\u591f\u751f\u6548\uff0c\u4e14\u80fd\u591f\u5b9e\u73b0\u7aef\u53e3\u7684\u53cd\u5411\u8f6c\u53d1\u3002\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh -fNR 4444:localhost:80 root@136.22.10.4 -p666           #\u5982\u679c\u672c\u5730\u673a\u5668\u6709http\u670d\u52a1\uff0c\u4e14\u76d1\u542c\u572880\u7aef\u53e3\u3002\u90a3\u4e48\u6267\u884c\u8be5\u547d\u4ee4\u540e\uff0c\u4e5f\u53ef\u901a\u8fc7\u8bbf\u95ee\u8fdc\u7aef\u76844444\u7aef\u53e3\u6765\u8bbf\u95ee\u672c\u673a\u7684http\u670d\u52a1\uff0c\u5373\u5b9e\u73b0\u4e86\u53cd\u5411\u7684\u7aef\u53e3\u8f6c\u53d1<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">4.3 \u5229\u7528 AutoSSH \u5b9e\u73b0\u7a33\u5b9a\u6301\u4e45\u7aef\u53e3\u8f6c\u53d1<\/h2>\n\n\n\n<p>\u5728\u5185\u7f51\u4e3b\u673a A \u4e0a\u5148\u5b89\u88c5autossh\uff0c\u5229\u7528 AutoSSH \u5efa\u7acb\u4e00\u6761 SSH \u96a7\u9053<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">autossh -M 4010 -NR 80:localhost:4000 username@xxx.xxx.xxx.xxx (-p xxxx)<\/pre>\n\n\n\n<p><strong>\u53c2\u6570\u89e3\u91ca\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u201c-M 4010\u201d\u610f\u601d\u662f\u4f7f\u7528\u5185\u7f51\u4e3b\u673a A \u7684 4010 \u7aef\u53e3\u76d1\u89c6 SSH \u8fde\u63a5\u72b6\u6001\uff0c\u8fde\u63a5\u51fa\u95ee\u9898\u4e86\u4f1a\u81ea\u52a8\u91cd\u8fde<\/li><li>\u201c -N\u201d\u610f\u601d\u662f\u4e0d\u6267\u884c\u8fdc\u7a0b\u547d\u4ee4<\/li><li>\u201c-R\u201d\u610f\u601d\u662f\u5c06\u8fdc\u7a0b\u4e3b\u673a\uff08\u516c\u7f51\u4e3b\u673a B\uff09\u7684\u67d0\u4e2a\u7aef\u53e3\u8f6c\u53d1\u5230\u672c\u5730\u6307\u5b9a\u673a\u5668\u7684\u6307\u5b9a\u7aef\u53e3<\/li><\/ul>\n\n\n\n<p><strong>\u4ee3\u7801\u89e3\u91ca\uff1a<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>\u201c80:localhost:4000\u201d\u610f\u601d\u662f\u5c06\u5185\u7f51\u4e3b\u673a A \u7684 4000 \u53f7\u7aef\u53e3\u8f6c\u53d1\u81f3\u516c\u7f51\u4e3b\u673a B \u7684 80 \u53f7\u7aef\u53e3\u4e0a<\/li><li>\u201cusername@xxx.xxx.xxx.xxx\u201d\u610f\u601d\u662f\u516c\u7f51\u4e3b\u673a B \u7684\u7528\u6237\u540d\u548c IP<\/li><li>\u201c-p xxxx\u201d\u610f\u601d\u662f\u516c\u7f51\u4e3b\u673a B \u7684 SSH \u7aef\u53e3\uff0c\u5982\u679c\u662f\u9ed8\u8ba4\u7684 22 \u53f7\u7aef\u53e3\uff0c\u5219\u53ef\u4ee5\u4e0d\u8f93\u5165.<\/li><\/ul>\n\n\n\n<ul class=\"wp-block-list\"><li>\u603b\u7ed3<ul><li>\u8be5\u529f\u80fd\u4e3b\u8981\u7528\u4e8e\uff0c\u65e0\u6cd5\u88ab\u5916\u90e8\u7f51\u7edc\u76f4\u63a5\u8bbf\u95ee\u7684\u4e3b\u673a\uff0c\u901a\u8fc7\u5916\u90e8\u670d\u52a1\u5668\uff08\u8df3\u677f\u673a\uff09\u8fdb\u884c\u8bbf\u95ee\uff0c\u4e14\u5b9e\u73b0\u7aef\u53e3\u8f6c\u53d1\u7b49\u529f\u80fd\u3002<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>\u53c2\u8003\uff1a<a href=\"https:\/\/zhuanlan.zhihu.com\/p\/112227542\">https:\/\/zhuanlan.zhihu.com\/p\/112227542<\/a><\/p>\n\n\n\n<p><a href=\"https:\/\/www.cnblogs.com\/bettersky\/p\/8588465.html\">https:\/\/www.cnblogs.com\/bettersky\/p\/8588465.html<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u901a\u8fc7ssh\u5b9e\u73b0\u7aef\u53e3\u7684\u53cd\u5411\u8f6c\u53d1\uff0c\u53ef\u4ee5\u901a\u8fc7ssh\u5b9e\u73b0\u5185\u7f51\u673a\u5668\u76f4\u63a5\u5728\u516c\u7f51\u4e0a\u88abssh\u8bbf\u95ee<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[9,10],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-linux","tag-ssh","tag-10"],"_links":{"self":[{"href":"https:\/\/szx622.top\/index.php?rest_route=\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/szx622.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/szx622.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/szx622.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/szx622.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":2,"href":"https:\/\/szx622.top\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":42,"href":"https:\/\/szx622.top\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions\/42"}],"wp:attachment":[{"href":"https:\/\/szx622.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/szx622.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/szx622.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}