Comments (6)
frps.toml 最下方把这个加进去就可以了
allowPorts = [
{ single = 22}
]
from frp.
还是一样的报错
from frp.
执行ssh -oPort=6000 [email protected]
服务端报错日志:
kex_exchange_identification: Connection closed by remote host
Connection closed by 127.0.0.1 port 6000
客户端报错日志:
admin@hanxiangdong frp % go run cmd/frpc/main.go -c ././conf/frpc.toml
2024-05-10 11:08:27.554 [I] [sub/root.go:142] start frpc service for config file [././conf/frpc.toml]
2024-05-10 11:08:27.554 [I] [client/service.go:294] try to connect to server...
2024-05-10 11:08:27.594 [I] [client/service.go:286] [cdc94978a46d35e7] login to server success, get run id [cdc94978a46d35e7]
2024-05-10 11:08:27.595 [I] [proxy/proxy_manager.go:173] [cdc94978a46d35e7] proxy added: [test]
2024-05-10 11:08:27.608 [I] [client/control.go:168] [cdc94978a46d35e7] [test] start proxy success
2024-05-10 11:08:35.916 [D] [proxy/proxy_wrapper.go:260] [cdc94978a46d35e7] [test] start a new work connection, localAddr: 192.168.10.16:57462 remoteAddr: 180.184.60.200:7000
2024-05-10 11:08:35.917 [E] [proxy/proxy.go:206] [cdc94978a46d35e7] [test] connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused
2024-05-10 11:10:04.140 [D] [proxy/proxy_wrapper.go:260] [cdc94978a46d35e7] [test] start a new work connection, localAddr: 192.168.10.16:57462 remoteAddr: 180.184.60.200:7000
2024-05-10 11:10:04.141 [E] [proxy/proxy.go:206] [cdc94978a46d35e7] [test] connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused
2024-05-10 11:13:09.077 [D] [proxy/proxy_wrapper.go:260] [cdc94978a46d35e7] [test] start a new work connection, localAddr: 192.168.10.16:57462 remoteAddr: 180.184.60.200:7000
2024-05-10 11:13:09.078 [E] [proxy/proxy.go:206] [cdc94978a46d35e7] [test] connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused
2024-05-10 11:13:23.180 [D] [proxy/proxy_wrapper.go:260] [cdc94978a46d35e7] [test] start a new work connection, localAddr: 192.168.10.16:57462 remoteAddr: 180.184.60.200:7000
2024-05-10 11:13:23.181 [E] [proxy/proxy.go:206] [cdc94978a46d35e7] [test] connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused
from frp.
客户端上执行
ss -tnlp sport 22
检查端口监听情况
from frp.
admin@hanxiangdong ~ % sudo netstat -an | grep 22
Password:
tcp4 0 0 127.0.0.1.57229 . LISTEN
tcp4 0 0 192.168.10.16.55157 223.6.6.6.443 ESTABLISHED
tcp4 0 0 192.168.10.16.54804 17.57.145.149.5223 ESTABLISHED
tcp4 0 0 192.168.10.16.53329 180.184.60.200.22 ESTABLISHED
tcp4 0 0 192.168.10.16.54229 192.168.10.254.80 CLOSE_WAIT
tcp4 0 0 192.168.10.16.50179 108.177.97.188.5228 ESTABLISHED
tcp6 0 0 fe80::aede:48ff:.50822 fe80::aede:48ff:.49359 ESTABLISHED
tcp4 0 0 127.0.0.1.62722 . LISTEN
3ca2d50d3f81401f dgram 0 0 0 3ca2d50d3f8121a7 0 3ca2d50d3f81226f
3ca2d50d3f81226f dgram 0 0 0 3ca2d50d3f8121a7 0 0
kctl 0 0 22 3 com.apple.net.netagent
kctl 0 0 22 7 com.apple.netsrc
本机的22端口是没有启动 不知道什么原因
from frp.
Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
from frp.
Related Issues (20)
- 使用旁路由的情况下, frpc无法启动问题 HOT 2
- frpc安装不成功,是否是缺DLL? HOT 2
- frp 配置文件不同版本不一样吗? HOT 2
- xtcp 能获取到访问的真实ip吗? HOT 1
- frp 0.58.1 Server 连接几分钟后断链 HOT 2
- One port for multiple remote connections HOT 1
- frp一段时间后失去连接 HOT 1
- android版本怎么安装和使用 HOT 1
- login to the server failed: session shutdown. HOT 2
- io timeout\connection timeout HOT 2
- [Feature Request] Configure remotePort on the Server HOT 1
- unmarshal ProxyConfig error: json: unknown field "customDomains" HOT 1
- frp返回错误的页面,访问不同子域名时返回错误页面 HOT 1
- 按照gofrp.org官网,提供的p2p教程示例,两台服务器部署的时候json解析失败 HOT 2
- [Feature Request] 是否可以增加压缩条件 HOT 1
- frp 使用route路由locations无效
- Log Failed Authentication Attempts for HTTP Basic Auth on Dashboard [Feature Request] HOT 2
- [Feature Request] 目前只想client端使用http_proxy功能, HOT 1
- 面板深色模式,首页面板,有些字就看不见了 HOT 1
- frps dashboard 代理类型增加 xtcp HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from frp.