mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 16:15:49 -06:00
[GH-ISSUE #2090] token 不正确 #1660
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#1660
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 @libra1010 on GitHub (Nov 20, 2020).
Original GitHub issue: https://github.com/fatedier/frp/issues/2090
[REQUIRED] hat version of frp are you using
Version:
0.34.2
0.34.3
[REQUIRED] What operating system and processor architecture are you using
OS:
server: centos7
client: macos 10.15.2
[REQUIRED] description of errors
confile
server
[common]
bind_addr = 0.0.0.0
bind_port = 7000
vhost_http_port = 7001
authentication_method = token
token = 123456
client
[common]
server_addr = 服务端ip
server_port = 7000
authentication_method = token
token = 123456
[nas1]
type = http
local_ip = 192.168.3.200
local_port = 5000
remote_port = 7001
custom_domains = xxx.com
log file
2020/11/20 22:06:23 [I] [service.go:444] [c63f9da59d413f8e] client login info: ip [171.212.254.60:62769] version [0.34.2] hostname [] os [darwin] arch [amd64]
2020/11/20 22:06:23 [W] [service.go:346] register control error: token in login doesn't match token from configuration
Steps to reproduce the issue
1:配置服务端
2:启动服务端
3:配置客户端
4: 启动客户端
尝试多个版本,
authentication_method = token 移除加入,都还是有问题
@libra1010 commented on GitHub (Nov 21, 2020):
可能是复制配置的原因
去掉 authentication_method = token
去掉 token = 123456
保存
重新编辑配置文件
手动加入 token = 123456
启动,就完全OK
@jjqtony commented on GitHub (May 15, 2021):
根据上面的做法,我怎么都是不对,以前用老版本0.29是ok的,肯定是新版的锅。
@kittysmith5 commented on GitHub (Aug 10, 2021):
把服务端token改成12345678试试,那默认密码是12345678,客户端就可以把token删掉
@sidpku commented on GitHub (Sep 7, 2021):
同样的问题。
将客户端和服务器端的
authentication_method = token都删掉后,将token = mypassword删掉重新输入,解决掉了问题。