Giter Club home page Giter Club logo

Comments (9)

iseeyou avatar iseeyou commented on May 23, 2024

ssh可以,你看是不是自己哪个防火墙的问题。

from frp.

SmarkSeven avatar SmarkSeven commented on May 23, 2024

公网Linux服务器防火墙配置:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8080 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 8001 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 3306 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 7000 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 6000 -j ACCEPT

内网Mac服务器没有开启防火墙功能 @iseeyou

from frp.

FlashSoft avatar FlashSoft commented on May 23, 2024

ssh root@ip -p 端口

from frp.

SmarkSeven avatar SmarkSeven commented on May 23, 2024

仍然是连接超时

[root@iZ94i1kgqbxZ ~]# ssh [email protected] -p 6000
ssh: connect to host 192.168.1.4 port 6000: Connection timed out

frps启动正常

[root@iZ94i1kgqbxZ service]# ./frps -c ./frps.ini
2016/08/25 19:10:30 [main.go:182] [I] Start frps success
2016/08/25 19:11:22 [control.go:314] [I] ProxyName [ssh], start proxy success 

frpc启动正常

➜ /Users/sevenone/Downloads/frp_0.8.1_darwin_amd64 >./frpc -c ./frpc.ini
2016/08/25 19:11:24 [main.go:109] [I] Start frpc success
2016/08/25 19:11:24 [control.go:185] [I] ProxyName [ssh], connect to server [120.25.147.61:7000] success!
2016/08/25 19:11:24 [control.go:193] [I] Start to send heartbeat to frps

@FlashSoft

from frp.

FlashSoft avatar FlashSoft commented on May 23, 2024

怎么看你都应该是 ssh [email protected] -p 6000吧

from frp.

SmarkSeven avatar SmarkSeven commented on May 23, 2024

120.25.147.61 是公网IP
ssh [email protected]本就可以远程登录
ssh [email protected] -p 6000这样做有什么额外的意义?
我想要的是从外网访问内网主机资源,so how to do?
@FlashSoft

from frp.

iseeyou avatar iseeyou commented on May 23, 2024

@SmarkSeven 从外网访问内网,你应该是访问外网的ip,frp帮你打洞到内网。。。

from frp.

SmarkSeven avatar SmarkSeven commented on May 23, 2024

也就是说这个访问行为同时有三个主机参与
1.我的电脑 、2.被访问的内网主机、3.搭桥的外网主机
今天第一次接触内外穿透,有很多地方不明白
@iseeyou 是这样吗

from frp.

SmarkSeven avatar SmarkSeven commented on May 23, 2024

刚刚试了下
ssh [email protected] -p 6000

ssh -oPort=6000 [email protected]
这两种形式都可以
谢谢 @iseeyou @FlashSoft

from frp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.