[GH-ISSUE #4319] frp ssh bindport #3408

Closed
opened 2026-05-05 14:11:36 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @micneu72 on GitHub (Jul 5, 2024).
Original GitHub issue: https://github.com/fatedier/frp/issues/4319

Bug Description

i have a frp server config for ssh
when i run my config, frp listen on 0.0.0.0:7000 my bind port ist 7001
and the server site and client side dont write a log file

frpc Version

0.58.1

frps Version

0.58.1

System Architecture

linux/aarch64

Configurations

`# frps-ssh.toml | ssh_server_ansible
[common]

trace, debug, info, warn, error

log.level = "info"
log.maxDays = 3
log.to = "/var/log/frp/frps_ssh_server_ansible.log"
bindPort = 7001
auth.method = "token"
auth.token = tokensetzennichtvergessen`

`# frpc-ssh.toml | ssh_client_ansible
[common]
serverAddr = "10.211.55.38"
serverPort = 7001

trace, debug, info, warn, error

log.level = "info"
log.maxDays = 3
log.to = "/var/log/frp"/frpc_ssh_client_ansible.log
auth.token = tokensetzennichtvergessen

proxies
name = "ssh"
type = "tcp"
localPort = 22
localIP = "127.0.0.1"
remotePort = 2222`

Logs

warning on server
WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead! 2024-07-05 18:40:59.914 [I] [frps/root.go:105] frps uses config file: frps_ssh_server_ansible.toml 2024-07-05 18:41:00.039 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:7000 2024-07-05 18:41:00.039 [I] [frps/root.go:114] frps started successfully

warning on client
WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead! 2024-07-05 16:54:14.816 [I] [sub/root.go:142] start frpc service for config file [frpc_ssh_client_ansible.toml] 2024-07-05 16:54:14.816 [I] [client/service.go:294] try to connect to server... 2024-07-05 16:54:14.817 [W] [client/service.go:297] connect to server error: dial tcp 0.0.0.0:7000: connect: connection refused 2024-07-05 16:54:14.817 [I] [sub/root.go:160] frpc service for config file [frpc_ssh_client_ansible.toml] stopped login to the server failed: dial tcp 0.0.0.0:7000: connect: connection refused. With loginFailExit enabled, no additional retries will be attempted

Steps to reproduce

  1. run on server
  2. /opt/frp/frps -c /etc/frp/frps_ssh_server_ansible.toml
  3. run on client
  4. /opt/frp/frpc -c /etc/frp/frpc_ssh_client_ansible.toml

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @micneu72 on GitHub (Jul 5, 2024). Original GitHub issue: https://github.com/fatedier/frp/issues/4319 ### Bug Description i have a frp server config for ssh when i run my config, frp listen on 0.0.0.0:7000 my bind port ist 7001 and the server site and client side dont write a log file ### frpc Version 0.58.1 ### frps Version 0.58.1 ### System Architecture linux/aarch64 ### Configurations `# frps-ssh.toml | ssh_server_ansible [common] # trace, debug, info, warn, error log.level = "info" log.maxDays = 3 log.to = "/var/log/frp/frps_ssh_server_ansible.log" bindPort = 7001 auth.method = "token" auth.token = tokensetzennichtvergessen` `# frpc-ssh.toml | ssh_client_ansible [common] serverAddr = "10.211.55.38" serverPort = 7001 # trace, debug, info, warn, error log.level = "info" log.maxDays = 3 log.to = "/var/log/frp"/frpc_ssh_client_ansible.log auth.token = tokensetzennichtvergessen [[proxies]] name = "ssh" type = "tcp" localPort = 22 localIP = "127.0.0.1" remotePort = 2222` ### Logs warning on server `WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead! 2024-07-05 18:40:59.914 [I] [frps/root.go:105] frps uses config file: frps_ssh_server_ansible.toml 2024-07-05 18:41:00.039 [I] [server/service.go:237] frps tcp listen on 0.0.0.0:7000 2024-07-05 18:41:00.039 [I] [frps/root.go:114] frps started successfully` warning on client `WARNING: ini format is deprecated and the support will be removed in the future, please use yaml/json/toml format instead! 2024-07-05 16:54:14.816 [I] [sub/root.go:142] start frpc service for config file [frpc_ssh_client_ansible.toml] 2024-07-05 16:54:14.816 [I] [client/service.go:294] try to connect to server... 2024-07-05 16:54:14.817 [W] [client/service.go:297] connect to server error: dial tcp 0.0.0.0:7000: connect: connection refused 2024-07-05 16:54:14.817 [I] [sub/root.go:160] frpc service for config file [frpc_ssh_client_ansible.toml] stopped login to the server failed: dial tcp 0.0.0.0:7000: connect: connection refused. With loginFailExit enabled, no additional retries will be attempted` ### Steps to reproduce 1. run on server 2. /opt/frp/frps -c /etc/frp/frps_ssh_server_ansible.toml 3. run on client 4. /opt/frp/frpc -c /etc/frp/frpc_ssh_client_ansible.toml 5. ... ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [X] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:11:36 -06:00
Author
Owner

@xqzr commented on GitHub (Jul 7, 2024):

[common]

<!-- gh-comment-id:2212476196 --> @xqzr commented on GitHub (Jul 7, 2024): ~~`[common]`~~
Author
Owner

@github-actions[bot] commented on GitHub (Jul 29, 2024):

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

<!-- gh-comment-id:2254735769 --> @github-actions[bot] commented on GitHub (Jul 29, 2024): Issues go stale after 21d 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#3408
No description provided.