[GH-ISSUE #3680] ssh端口不能按照指定的端口设置,而是自动生成 #2930

Closed
opened 2026-05-05 13:53:38 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @itgoyo on GitHub (Oct 16, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3680

Bug Description

ssh端口不能按照指定的端口设置,而是自动生成

frpc Version

0.38.0

frps Version

0.38.0

System Architecture

linux/amd64

Configurations

在三台客户端机器都发现了相同的问题,每个ssh的端口和我设置的都不一样,感觉是随机生成的

[um480xt-ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote-port = 40000
[um480xt-portainer]
type = tcp
local_ip = 127.0.0.1
local_port = 9000
remote_port = 40002
[um480xt-bililive]
type = tcp
local_ip = 127.0.0.1
local_port = 12345
remote_port = 40003
[um480xt-brec]
type = tcp
local_ip = 127.0.0.1
local_port = 2333
remote_port = 40004
image

Logs

.

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 @itgoyo on GitHub (Oct 16, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3680 ### Bug Description ssh端口不能按照指定的端口设置,而是自动生成 ### frpc Version 0.38.0 ### frps Version 0.38.0 ### System Architecture linux/amd64 ### Configurations 在三台客户端机器都发现了相同的问题,每个ssh的端口和我设置的都不一样,感觉是随机生成的 ``` [um480xt-ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote-port = 40000 [um480xt-portainer] type = tcp local_ip = 127.0.0.1 local_port = 9000 remote_port = 40002 [um480xt-bililive] type = tcp local_ip = 127.0.0.1 local_port = 12345 remote_port = 40003 [um480xt-brec] type = tcp local_ip = 127.0.0.1 local_port = 2333 remote_port = 40004 ``` <img width="1489" alt="image" src="https://github.com/fatedier/frp/assets/23348551/94caa91c-8ab2-44f2-ba3e-b2e915b06f4e"> ### Logs . ### Steps to reproduce . ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [X] Others
Author
Owner

@superzjg commented on GitHub (Oct 16, 2023):

很显然,[um480xt-ssh]的参数写错了,当然不会生效

<!-- gh-comment-id:1763858497 --> @superzjg commented on GitHub (Oct 16, 2023): 很显然,[um480xt-ssh]的参数写错了,当然不会生效
Author
Owner

@itgoyo commented on GitHub (Oct 17, 2023):

@superzjg 感谢,你这么一说我才细心的去看了一下参数,确实错了

<!-- gh-comment-id:1765514258 --> @itgoyo commented on GitHub (Oct 17, 2023): @superzjg 感谢,你这么一说我才细心的去看了一下参数,确实错了
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#2930
No description provided.