mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
[GH-ISSUE #458] proxy name [ssh] is already in use错误。 #346
Labels
No labels
In Progress
WIP
WaitingForInfo
bug
doc
duplicate
easy
enhancement
future
help wanted
invalid
lifecycle/stale
need-issue-template
need-usage-help
no plan
proposal
pull-request
question
todo
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/frp#346
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SuPerCxyz on GitHub (Sep 10, 2017).
Original GitHub issue: https://github.com/fatedier/frp/issues/458
Issue is only used for submiting bug report and documents typo. If there are same issues or answers can be found in documents, we will close it directly.
(为了节约时间,提高处理问题的效率,不按照格式填写的 issue 将会直接关闭。)
Use the commands below to provide key information from your environment:
You do NOT have to include this information if this is a FEATURE REQUEST
What version of frp are you using (./frpc -v or ./frps -v)?
What operating system and processor architecture are you using (
go env)?Configures you used:
Steps to reproduce the issue:
1.运行时显示proxy name [ssh] is already in use导致无法正常使用。
2.配置文件如下:
[common]
server_addr = xxxxx
server_port = 7000
[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6001
Describe the results you received:
Describe the results you expected:
Additional information you deem important (e.g. issue happens only occasionally):
Can you point out what caused this issue (optional)
@shaobosong commented on GitHub (Sep 10, 2017):
有别的设备运行过[ssh]命名的子项了并且没关闭frpc进程,换个名就行了,比如ssh1
@gouchaoer commented on GitHub (May 24, 2019):
this is strange. if many people need to share a frp server, then the frpc.ini need a different config name.
@michalfapso commented on GitHub (Oct 18, 2020):
you can use the
user = USERNAMEsetting in the frpc.ini config file. Then, multiple users may have the same service name (e.g.[ssh]), because their proxy names would be:This behavior is described in the example frpc_full.ini
You can set the
userparameter via an ENV variable (more info here), so you can have the samefrpc.inifile on multiple computers. You just need to set an env variable which is unique for all those computers and use it for theuserparameter in thefrpc.ini.@shaojun commented on GitHub (Jul 27, 2022):
@michalfapso just don't like the design of using the section title:
[ssh]as a unique key in server side for identify a client, as the[ssh]here is obvious a local descriptive info string, and theremote_portitself already proved the client's uniqueness.