{"id":553758,"date":"2022-02-01T22:24:47","date_gmt":"2022-02-01T14:24:47","guid":{"rendered":"http:\/\/4563.org\/?p=553758"},"modified":"2022-02-01T22:24:47","modified_gmt":"2022-02-01T14:24:47","slug":"frp-%e6%9c%8d%e5%8a%a1%e5%99%a8%e6%90%ad%e5%bb%ba%e6%88%90%e5%8a%9f%ef%bc%8c-ssh-%e9%93%be%e6%8e%a5%e5%88%b0%e5%86%85%e7%bd%91%e7%9a%84%e6%97%b6%e5%80%99%e6%8b%92%e7%bb%9d%e8%bf%9e%e6%8e%a5-c-3","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=553758","title":{"rendered":"frp \u670d\u52a1\u5668\u642d\u5efa\u6210\u529f\uff0c ssh \u94fe\u63a5\u5230\u5185\u7f51\u7684\u65f6\u5019\u62d2\u7edd\u8fde\u63a5 c"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>  frp \u670d\u52a1\u5668\u642d\u5efa\u6210\u529f\uff0c ssh \u94fe\u63a5\u5230\u5185\u7f51\u7684\u65f6\u5019\u62d2\u7edd\u8fde\u63a5 c <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : chenjunqiang <\/span>  <span><i><\/i> 21<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>1.\u9632\u706b\u5899\u4e0a\u5df2\u7ecf\u5f00\u653e 10000 \u5230 20000 \u7684\u7aef\u53e3\u3002<\/p>\n<p>2.frp \u670d\u52a1\u5668\u53ef\u4ee5\u901a\u8fc7 web \u8bbf\u95ee\uff0c\u8bc1\u660e frp \u5df2\u7ecf\u6210\u529f\u4e86\u3002<\/p>\n<p>3.\u5185\u7f51\u7684\u673a\u5b50\u4f7f\u7528 frpc \u5df2\u7ecf\u542f\u52a8\u6210\u529f\uff0c\u8fd9\u4e2a\u65f6\u5019\u5728 frp \u540e\u53f0\u662f\u53ef\u4ee5\u770b\u5230\u8fde\u63a5\u4e2d\u3002<\/p>\n<p>4.\u8fde\u63a5\u5230\u5185\u7f51\u7684\u65f6\u5019\uff0c\u4f7f\u7528\u7684\u547d\u4ee4\u662f\uff1assh -oPort=10022 {xxx.xxx.xx.xx} <\/p>\n<p>5.\u670d\u52a1\u5668\u7684\u914d\u7f6e\u5982\u4e0b\uff1a<\/p>\n<p>You Server IP : xxxxxxxxxx<\/p>\n<p>Bind port : 10000<\/p>\n<p>KCP support : true<\/p>\n<p>vhost http port : 80<\/p>\n<p>vhost https port : 443<\/p>\n<p>Dashboard port : 10001<\/p>\n<p>token : xxxxxxxxxx<\/p>\n<p>tcp_mux : true<\/p>\n<p>Max Pool count : 50<\/p>\n<p>Log level : info<\/p>\n<p>Log max days : 3<\/p>\n<p>Log file : enable<\/p>\n<p>6.\u5185\u7f51\u673a\u5b50\u7684\u914d\u7f6e\u5982\u4e0b frpc.ini<\/p>\n<p>[common]<\/p>\n<p>sever_addr = xxx.xx.xx.xx<\/p>\n<p>server_port = 10000<\/p>\n<p>token = xxxxxxxx<\/p>\n<p>[ssh]<\/p>\n<p>type = tcp<\/p>\n<p>local_ip = 127.0.0.1<\/p>\n<p>local_port = 22<\/p>\n<p>remote_port = 10022<\/p>\n<p>7.\u6267\u884c ssh \u547d\u4ee4\u7684\u65f6\u5019\uff0c\u5185\u7f51\u7684\u673a\u5b50\u547d\u4ee4\u884c\u4e0b\u4f1a\u63d0\u793a error dial tcp 127.0.0.1:22 connect:connction refuse.<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>3<\/span>) <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"7135858\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : commoccoom <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u611f\u89c9\u662f ssh \u7684\u95ee\u9898\uff0c\u5728\u5185\u7f51\u91cc\u8bd5\u8bd5 ssh \u80fd\u4e0d\u80fd\u8fde\u4e0a <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7135859\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : hefish <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> \u611f\u89c9 sshd \u6ca1\u5f00\u5728 22 \u7aef\u53e3\u6216\u8005 iptables \u4e0d\u5141\u8bb8\u8fde\u63a5 127.0.0.1:22 <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"7135860\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : chenjunqiang <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>  <\/span> <\/div>\n<\/p><\/div>\n<div> @commoccoom \u5bf9\uff0cssh \u5b89\u88c5\u597d\u540e\u5c31\u597d\u4e86\u3002 <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>frp \u670d\u52a1\u5668\u642d\u5efa\u6210\u529f\uff0c ssh &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/553758"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=553758"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/553758\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=553758"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=553758"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=553758"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}