Closed xinyangbest closed 4 years ago
这边测试连接都是没问题的,有几个注意点:
我再排查一下 可能是浏览器代理的问题
2019-06-21
xiexinyang
发件人:Tionsin notifications@github.com 发送时间:2019-06-21 16:41 主题:Re: [Zo3i/frpMgr] 远程安装的时候每次都提示成功但是看代码 显示连接失败 ip 账号密码都是正确的 (#2) 收件人:"Zo3i/frpMgr"frpMgr@noreply.github.com 抄送:"谢新阳"xiexinyang@haozu.com,"Author"author@noreply.github.com
这边测试连接都是没问题的,有几个注意点: 你的服务器用户名是配置的,看看有没有错了 服务器的端口写死了都是22 是不是代理问题,因为使用浏览器代理上去连接SSH的。 — You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or mute the thread.
2019-06-21 16:43:23.903 DEBUG LogInterceptor - 开始计时: 08:43:23.903 URI: /frp/a/frp/frpServer/fastFrp/1141975628485939200/Xieyyang290735!
2019-06-21 16:43:23.911 DEBUG SelectSqlProvider - 0毫秒: SELECT a.id AS "id", a.user_name AS "userName", a.subdomain_host AS "subdomainHost", a.server_ip AS "serverIp", a.web_port AS "webPort", a.server_name AS "serverName" FROM frp_server a WHERE a.id
= #{id}
2019-06-21 16:43:23.912 DEBUG SpringManagedTransaction - JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@1d730606] will not be managed by Spring
2019-06-21 16:43:23.915 DEBUG get - ==> Preparing: SELECT a.id AS "id", a.user_name AS "userName", a.subdomain_host AS "subdomainHost", a.server_ip AS "serverIp", a.web_port AS "webPort", a.server_name AS "serverName" FROM frp_server a WHERE a.id
= ?
2019-06-21 16:43:23.916 DEBUG get - ==> Parameters: 1141975628485939200(String)
2019-06-21 16:43:23.919 DEBUG get - <== Total: 1
com.jcraft.jsch.JSchException: java.net.ConnectException: Connection timed out (Connection timed out)
at com.jcraft.jsch.Util.createSocket(Util.java:349)
at com.jcraft.jsch.Session.connect(Session.java:215)
at com.jcraft.jsch.Session.connect(Session.java:183)
at com.jeesite.modules.common.utils.ShellUtil.execute(ShellUtil.java:35)
at com.jeesite.modules.frp.web.FrpServerController.fastFrp(FrpServerController.java:128)
at com.jeesite.modules.frp.web.FrpServerController$$FastClassBySpringCGLIB$$ddcd128e.invoke(
容器详细的错误信息
换一个服务器试试。
这个成本有点高 我就一个,而且还有那个客户端 配置的时候只能配置端口 其实还可以配置local ip的 比如我转发客户端在内网一个机器上 我可以随机配置转发到内网其他机器提供的服务,没必要再去另外机器启动这个客户端
不管是往远程机器装 还是部署所在的机器装 都是不行 部署到了阿里云的机器了
47.101.35.217:8999/frp Abc12345 快到期的一个机子,你试试。
2019-06-21 16:58:19.375 DEBUG LogInterceptor - 开始计时: 08:58:19.375 URI: /frp/a/frp/frpServer/fastFrp/1141975628485939200/Abc12345
2019-06-21 16:58:19.385 DEBUG SelectSqlProvider - 0毫秒: SELECT a.id AS "id", a.user_name AS "userName", a.subdomain_host AS "subdomainHost", a.server_ip AS "serverIp", a.web_port AS "webPort", a.server_name AS "serverName" FROM frp_server a WHERE a.id
= #{id}
2019-06-21 16:58:19.387 DEBUG SpringManagedTransaction - JDBC Connection [com.alibaba.druid.proxy.jdbc.ConnectionProxyImpl@1d730606] will not be managed by Spring
2019-06-21 16:58:19.389 DEBUG get - ==> Preparing: SELECT a.id AS "id", a.user_name AS "userName", a.subdomain_host AS "subdomainHost", a.server_ip AS "serverIp", a.web_port AS "webPort", a.server_name AS "serverName" FROM frp_server a WHERE a.id
= ?
2019-06-21 16:58:19.389 DEBUG get - ==> Parameters: 1141975628485939200(String)
2019-06-21 16:58:19.390 DEBUG get - <== Total: 1
com.jcraft.jsch.JSchException: java.net.ConnectException: Connection timed out (Connection timed out)
测试了 不可以
这边无法复现,很难定位到你的问题。还有frp其实我用的不多,就是简单web程序,如果有什么别的需求,可以提出来,我看看能不能加上去。
嗯 我还是直接安装使用吧 ,有web管理的肯定方便些 不过我这里运行有点问题,java不熟 不方便调试
http://47.101.35.217:8999/frp admin/12345678 你试试在这个平台上部署。这是我搭建的demo
我的服务器SSH端口不是22怎么解
com.jcraft.jsch.JSchException: java.net.ConnectException: Connection timed out (Connection timed out) at com.jcraft.jsch.Util.createSocket(Util.java:349) at com.jcraft.jsch.Session.connect(Session.java:215) at com.jcraft.jsch.Session.connect(Session.java:183) at com.jeesite.modules.common.utils.ShellUtil.execute(ShellUtil.java:35) at com.jeesite.modules.frp.web.FrpServerController.fastFrp(FrpServerController.java:130) at com.jeesite.modules.frp.web.FrpServerController$$FastClassBySpringCGLIB$$ddcd128e.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:738)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor$1.proceed(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:82)
at org.apache.shiro.authz.aop.AuthorizingMethodInterceptor.invoke(AuthorizingMethodInterceptor.java:39)
at org.apache.shiro.spring.security.interceptor.AopAllianceAnnotationsAuthorizingMethodInterceptor.invoke(AopAllianceAnnotationsAuthorizingMethodInterceptor.java:115)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:673)
at com.jeesite.modules.frp.web.FrpServerController$$EnhancerBySpringCGLIB$$2db1a220.fastFrp()
at com.jeesite.modules.frp.web.FrpServerController$$FastClassBySpringCGLIB$$ddcd128e.invoke()
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)