[GH-ISSUE #2427] frpc 运行出错 #1927

Closed
opened 2026-05-05 13:14:32 -06:00 by gitea-mirror · 12 comments
Owner

Originally created by @zhumingwei on GitHub (Jun 3, 2021).
Original GitHub issue: https://github.com/fatedier/frp/issues/2427

version : 0.37.0

错误信息 :

2021/06/03 03:54:28 [I] [service.go:304] [9765624ae6929628] login to server success, get run id [9765624ae6929628], server udp port [0]
2021/06/03 03:54:28 [I] [proxy_manager.go:144] [9765624ae6929628] proxy added: [ssh]
2021/06/03 03:54:28 [I] [control.go:180] [9765624ae6929628] [ssh] start proxy success
2021/06/03 03:54:44 [E] [proxy.go:797] [9765624ae6929628] [ssh] connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused

请问下这是什情况下会出现的呢?

Originally created by @zhumingwei on GitHub (Jun 3, 2021). Original GitHub issue: https://github.com/fatedier/frp/issues/2427 version : 0.37.0 错误信息 : ``` 2021/06/03 03:54:28 [I] [service.go:304] [9765624ae6929628] login to server success, get run id [9765624ae6929628], server udp port [0] 2021/06/03 03:54:28 [I] [proxy_manager.go:144] [9765624ae6929628] proxy added: [ssh] 2021/06/03 03:54:28 [I] [control.go:180] [9765624ae6929628] [ssh] start proxy success 2021/06/03 03:54:44 [E] [proxy.go:797] [9765624ae6929628] [ssh] connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused ``` 请问下这是什情况下会出现的呢?
gitea-mirror 2026-05-05 13:14:32 -06:00
Author
Owner

@jiqing112 commented on GitHub (Jun 3, 2021):

connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused

连接本地22端口被拒绝

<!-- gh-comment-id:853543704 --> @jiqing112 commented on GitHub (Jun 3, 2021): connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused 连接本地22端口被拒绝
Author
Owner

@zhumingwei commented on GitHub (Jun 3, 2021):

我使用的是华硕路由器,系统设置设置中已经打开了22端口,而且在内网的情况下ssh是可以登陆到路由器的

<!-- gh-comment-id:853545933 --> @zhumingwei commented on GitHub (Jun 3, 2021): 我使用的是华硕路由器,系统设置设置中已经打开了22端口,而且在内网的情况下ssh是可以登陆到路由器的
Author
Owner

@zhumingwei commented on GitHub (Jun 3, 2021):

使用 ssh admin@192.168.50.1 即可在内网登录路由器

<!-- gh-comment-id:853546250 --> @zhumingwei commented on GitHub (Jun 3, 2021): 使用 ssh admin@192.168.50.1 即可在内网登录路由器
Author
Owner

@haiwenheaven commented on GitHub (Jun 5, 2021):

我也是这个情况

<!-- gh-comment-id:855201970 --> @haiwenheaven commented on GitHub (Jun 5, 2021): 我也是这个情况
Author
Owner

@xqzr commented on GitHub (Jun 5, 2021):

添加或修改 local_ip = 192.168.50.1

<!-- gh-comment-id:855268443 --> @xqzr commented on GitHub (Jun 5, 2021): 添加或修改 `local_ip = 192.168.50.1`
Author
Owner

@haiwenheaven commented on GitHub (Jun 5, 2021):

connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused

连接本地22端口被拒绝

这个怎么解决

<!-- gh-comment-id:855276893 --> @haiwenheaven commented on GitHub (Jun 5, 2021): > connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused > > 连接本地22端口被拒绝 这个怎么解决
Author
Owner

@haiwenheaven commented on GitHub (Jun 5, 2021):

我的解决了,我的客户端是window下的wsl,wsl的openssh-server要重新安装

<!-- gh-comment-id:855281535 --> @haiwenheaven commented on GitHub (Jun 5, 2021): 我的解决了,我的客户端是window下的wsl,wsl的openssh-server要重新安装
Author
Owner

@github-actions[bot] commented on GitHub (Jul 21, 2021):

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

<!-- gh-comment-id:883795734 --> @github-actions[bot] commented on GitHub (Jul 21, 2021): Issues go stale after 45d of inactivity. Stale issues rot after an additional 10d of inactivity and eventually close.
Author
Owner

@zwzhangyu commented on GitHub (May 18, 2022):

添加或修改 local_ip = 192.168.50.1

我通过这种方式解决了问题

<!-- gh-comment-id:1129519121 --> @zwzhangyu commented on GitHub (May 18, 2022): > 添加或修改 `local_ip = 192.168.50.1` 我通过这种方式解决了问题
Author
Owner

@alextsao1999 commented on GitHub (Sep 17, 2022):

添加或修改 local_ip = 192.168.50.1

这个是加在哪里/哪个文件?

<!-- gh-comment-id:1250056635 --> @alextsao1999 commented on GitHub (Sep 17, 2022): > 添加或修改 `local_ip = 192.168.50.1` 这个是加在哪里/哪个文件?
Author
Owner

@bcxyf123 commented on GitHub (Dec 13, 2022):

connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused

连接本地22端口被拒绝

同样的问题,请问有解决的么?

<!-- gh-comment-id:1347908749 --> @bcxyf123 commented on GitHub (Dec 13, 2022): > connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: connect: connection refused > > 连接本地22端口被拒绝 同样的问题,请问有解决的么?
Author
Owner

@xuan-git commented on GitHub (Dec 23, 2022):

华为路由器。
在开通防火墙的情况下,需要设置ssh服务端主机为DMZ主机,绑定局域网ip(192.168.3.2)。
将127.0.0.1替换成192.168.3.2,解决问题。

<!-- gh-comment-id:1363522005 --> @xuan-git commented on GitHub (Dec 23, 2022): 华为路由器。 在开通防火墙的情况下,需要设置ssh服务端主机为DMZ主机,绑定局域网ip(192.168.3.2)。 将127.0.0.1替换成192.168.3.2,解决问题。
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/frp#1927
No description provided.