[GH-ISSUE #3612] Authentication with token not working #2883

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

Originally created by @mkzmch on GitHub (Sep 13, 2023).
Original GitHub issue: https://github.com/fatedier/frp/issues/3612

Bug Description

I am trying to connect frp client to frp server using an authentication token, however it appears I am doing something wrong. Please point me in a right direction.
Thank you

frpc Version

0.51.3

frps Version

0.51.3

System Architecture

linux/amd64

Configurations

frpc.ini

[common]
server_addr = 127.0.0.1
server_port = 7000
token = 12345678

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 6000
token = 12345
use_compression = false

frps.ini

[common]
bind_port = 7000
authentication_method = token
token = 12345678
authenticate_new_work_conns = false
authenticate_heartbeats = false

Logs

frps log:

2023/09/14 01:11:17 [I] [root.go:198] frps uses command line arguments for config
2023/09/14 01:11:18 [I] [service.go:200] frps tcp listen on 0.0.0.0:7000
2023/09/14 01:11:18 [I] [root.go:205] frps started successfully
2023/09/14 01:11:19 [I] [service.go:533] [bf4ea68e28de6ed4] client login info: ip [192.168.1.49:54792] version [0.51.3] hostname [] os [linux] arch [amd64]
2023/09/14 01:11:19 [W] [service.go:410] register control error: token in login doesn't match token from configuration

frpc

WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead!
2023/09/14 01:14:30 [I] [root.go:229] start frpc service for config file [./frpc.ini]
2023/09/14 01:14:30 [E] [service.go:291] token in login doesn't match token from configuration
2023/09/14 01:14:30 [W] [service.go:131] login to server failed: token in login doesn't match token from configuration
2023/09/14 01:14:30 [I] [root.go:244] frpc service for config file [./frpc.ini] stopped

Steps to reproduce

  1. Run the frp server with token authentication enabled
  2. Run the frp client

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @mkzmch on GitHub (Sep 13, 2023). Original GitHub issue: https://github.com/fatedier/frp/issues/3612 ### Bug Description I am trying to connect frp client to frp server using an authentication token, however it appears I am doing something wrong. Please point me in a right direction. Thank you ### frpc Version 0.51.3 ### frps Version 0.51.3 ### System Architecture linux/amd64 ### Configurations frpc.ini ```` [common] server_addr = 127.0.0.1 server_port = 7000 token = 12345678 [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 6000 token = 12345 use_compression = false ```` frps.ini ```` [common] bind_port = 7000 authentication_method = token token = 12345678 authenticate_new_work_conns = false authenticate_heartbeats = false ```` ### Logs frps log: ```` 2023/09/14 01:11:17 [I] [root.go:198] frps uses command line arguments for config 2023/09/14 01:11:18 [I] [service.go:200] frps tcp listen on 0.0.0.0:7000 2023/09/14 01:11:18 [I] [root.go:205] frps started successfully 2023/09/14 01:11:19 [I] [service.go:533] [bf4ea68e28de6ed4] client login info: ip [192.168.1.49:54792] version [0.51.3] hostname [] os [linux] arch [amd64] 2023/09/14 01:11:19 [W] [service.go:410] register control error: token in login doesn't match token from configuration ```` frpc ```` WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead! 2023/09/14 01:14:30 [I] [root.go:229] start frpc service for config file [./frpc.ini] 2023/09/14 01:14:30 [E] [service.go:291] token in login doesn't match token from configuration 2023/09/14 01:14:30 [W] [service.go:131] login to server failed: token in login doesn't match token from configuration 2023/09/14 01:14:30 [I] [root.go:244] frpc service for config file [./frpc.ini] stopped ```` ### Steps to reproduce 1. Run the frp server with token authentication enabled 2. Run the frp client ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [X] Client Plugin - [X] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 13:51:43 -06:00
Author
Owner

@fatedier commented on GitHub (Sep 14, 2023):

2023/09/14 01:11:17 [I] [root.go:198] frps uses command line arguments for config

<!-- gh-comment-id:1718648026 --> @fatedier commented on GitHub (Sep 14, 2023): `2023/09/14 01:11:17 [I] [root.go:198] frps uses command line arguments for config`
Author
Owner

@github-actions[bot] commented on GitHub (Oct 15, 2023):

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

<!-- gh-comment-id:1763220141 --> @github-actions[bot] commented on GitHub (Oct 15, 2023): Issues go stale after 30d of inactivity. Stale issues rot after an additional 7d of inactivity and eventually close.
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#2883
No description provided.