[GH-ISSUE #3047] ssh连接无法应 #2439

Closed
opened 2026-05-05 13:34:04 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @ledboot on GitHub (Aug 4, 2022).
Original GitHub issue: https://github.com/fatedier/frp/issues/3047

Bug Description

image

通过本地机器ssh连接内网机器,服务端能接收到本地机器的连接请求的,但是还是连接不上内网机器。内网机器是可以连上服务端的,不太清楚哪个环节没有弄好。

frpc Version

0.44.0

frps Version

0.44.0

System Architecture

linux/amd64

Configurations

server config:

[common]
bind_addr = 0.0.0.0
bind_port = 7390

client config:

[common]
server_addr = x.x.x.x
server_port = 7390

[ssh]
type = tcp
local_ip = 127.0.0.1 
local_port = 22
remote_port = 6000

Logs

No response

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @ledboot on GitHub (Aug 4, 2022). Original GitHub issue: https://github.com/fatedier/frp/issues/3047 ### Bug Description <img width="1359" alt="image" src="https://user-images.githubusercontent.com/3321156/182880055-ca224130-b6bb-43b4-875c-1a232a8c50f9.png"> 通过本地机器ssh连接内网机器,服务端能接收到本地机器的连接请求的,但是还是连接不上内网机器。内网机器是可以连上服务端的,不太清楚哪个环节没有弄好。 ### frpc Version 0.44.0 ### frps Version 0.44.0 ### System Architecture linux/amd64 ### Configurations server config: ``` [common] bind_addr = 0.0.0.0 bind_port = 7390 ``` client config: ``` [common] server_addr = x.x.x.x server_port = 7390 [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 6000 ``` ### Logs _No response_ ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
Author
Owner

@ledboot commented on GitHub (Aug 5, 2022):

client忘记设置网络模式了
network_mode: "host"

<!-- gh-comment-id:1205945868 --> @ledboot commented on GitHub (Aug 5, 2022): client忘记设置网络模式了 network_mode: "host"
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#2439
No description provided.