[GH-ISSUE #4014] 多个 SSH 服务复用同一端口,运行报错 #3176

Closed
opened 2026-05-05 14:03:18 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @fsleo on GitHub (Feb 21, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4014

Bug Description

ssh -o 'proxycommand socat - PROXY:106.55.x.x:%h:%p,proxyport=5002' pi@pi.dev.cn

另外customDomains这个是一定要做a记录的域名吗?

frpc Version

0.54.0

frps Version

0.54.0

System Architecture

linux/aarch64

Configurations

frps.toml:

bindPort = 7000
tcpmuxHTTPConnectPort = 5002

frpc.toml:
serverAddr = "106.55.x.x"
serverPort = 7000

proxies
name = "ssh1"
type = "tcpmux"
multiplexer = "httpconnect"
customDomains = ["pi.dev.cn"]
localIP = "127.0.0.1"
localPort = 22

Logs

zsh:1: command not found: socat
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535

Steps to reproduce

ssh -o 'proxycommand socat - PROXY:106.55.x.x:%h:%p,proxyport=5002' pi@pi.dev.cn

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @fsleo on GitHub (Feb 21, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4014 ### Bug Description ssh -o 'proxycommand socat - PROXY:106.55.x.x:%h:%p,proxyport=5002' pi@pi.dev.cn 另外customDomains这个是一定要做a记录的域名吗? ### frpc Version 0.54.0 ### frps Version 0.54.0 ### System Architecture linux/aarch64 ### Configurations frps.toml: bindPort = 7000 tcpmuxHTTPConnectPort = 5002 frpc.toml: serverAddr = "106.55.x.x" serverPort = 7000 [[proxies]] name = "ssh1" type = "tcpmux" multiplexer = "httpconnect" customDomains = ["pi.dev.cn"] localIP = "127.0.0.1" localPort = 22 ### Logs zsh:1: command not found: socat kex_exchange_identification: Connection closed by remote host Connection closed by UNKNOWN port 65535 ### Steps to reproduce ssh -o 'proxycommand socat - PROXY:106.55.x.x:%h:%p,proxyport=5002' pi@pi.dev.cn ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [X] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:03:18 -06:00
Author
Owner

@github-actions[bot] commented on GitHub (Mar 14, 2024):

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

<!-- gh-comment-id:1996186726 --> @github-actions[bot] commented on GitHub (Mar 14, 2024): Issues go stale after 21d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
Author
Owner

@hby07 commented on GitHub (Jun 25, 2024):

必须安装socat才能正常工作
域名可以是任意的

<!-- gh-comment-id:2188020719 --> @hby07 commented on GitHub (Jun 25, 2024): 必须安装socat才能正常工作 域名可以是任意的
Author
Owner

@henryzhuhr commented on GitHub (Apr 22, 2025):

想问一下,除了 socat,还有其他的方式吗,win上好像对 socat 的支持不是很友好

<!-- gh-comment-id:2819901854 --> @henryzhuhr commented on GitHub (Apr 22, 2025): 想问一下,除了 `socat`,还有其他的方式吗,win上好像对 socat 的支持不是很友好
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#3176
No description provided.