Giter Club home page Giter Club logo

Comments (6)

vikii0210 avatar vikii0210 commented on June 22, 2024

frps.toml 最下方把这个加进去就可以了

allowPorts = [
{ single = 22}
]

from frp.

huoyanyanyi1 avatar huoyanyanyi1 commented on June 22, 2024

还是一样的报错

from frp.

huoyanyanyi1 avatar huoyanyanyi1 commented on June 22, 2024

执行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.

xqzr avatar xqzr commented on June 22, 2024

客户端上执行

ss -tnlp sport 22

检查端口监听情况

from frp.

huoyanyanyi1 avatar huoyanyanyi1 commented on June 22, 2024

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.

github-actions avatar github-actions commented on June 22, 2024

Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.

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.