[GH-ISSUE #1037] ssh 连接上后,一段时间不操作,出现无响应现象 #823

Closed
opened 2026-05-05 12:31:28 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @WesternSun on GitHub (Jan 9, 2019).
Original GitHub issue: https://github.com/fatedier/frp/issues/1037

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)?
frps: 0.22.0
frpc: 0.22.0

What operating system and processor architecture are you using (go env)?

frps:
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"

frpc:
GOARCH="amd64"
GOHOSTARCH="amd64"
GOHOSTOS="linux"

Configures you used:

frps.ini:

[common]
bind_port = 18500
dashboard_port = 18501
dashboard_user = admin
dashboard_pwd = xxxxxxx
authentication_timeout = 0

frpc.ini:

[common]
server_addr = 157.208.90.80
server_port = 18500
log_level = trace

[test_static_file]
type = tcp
remote_port = 18510
plugin = static_file
plugin_local_path = /data
plugin_strip_prefix = static
plugin_http_user = admin
plugin_http_passwd = xxxxx

[ssh]
type = tcp
local_ip = 127.0.0.1
local_port = 22
remote_port = 18511

health_check_type = tcp
health_chcek_interval = 10
health_check_max_failed = 1
health_check_timeout = 3

Steps to reproduce the issue:

  1. ./frps -c ./frps.ini
  2. ./frpc -c ./frpc.ini
  3. ssh -p 18511 tester@157.208.90.80

Describe the results you received:

可以通过ssh远程到目标机器上,输入ls 等命令都是正常的,但是如果有5min左右未输入命令,那么就会卡住,无法输入任何命令。

Describe the results you expected:

希望超过ssh的配置文件/etc/ssh/sshd_config 中设置的ClientAliveInterval就主动断开连接。

Additional information you deem important (e.g. issue happens only occasionally):

Can you point out what caused this issue (optional)

Originally created by @WesternSun on GitHub (Jan 9, 2019). Original GitHub issue: https://github.com/fatedier/frp/issues/1037 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)?** frps: 0.22.0 frpc: 0.22.0 **What operating system and processor architecture are you using (`go env`)?** frps: GOARCH="amd64" GOHOSTARCH="amd64" GOHOSTOS="linux" frpc: GOARCH="amd64" GOHOSTARCH="amd64" GOHOSTOS="linux" **Configures you used:** frps.ini: [common] bind_port = 18500 dashboard_port = 18501 dashboard_user = admin dashboard_pwd = xxxxxxx authentication_timeout = 0 frpc.ini: [common] server_addr = 157.208.90.80 server_port = 18500 log_level = trace [test_static_file] type = tcp remote_port = 18510 plugin = static_file plugin_local_path = /data plugin_strip_prefix = static plugin_http_user = admin plugin_http_passwd = xxxxx [ssh] type = tcp local_ip = 127.0.0.1 local_port = 22 remote_port = 18511 health_check_type = tcp health_chcek_interval = 10 health_check_max_failed = 1 health_check_timeout = 3 **Steps to reproduce the issue:** 1. ./frps -c ./frps.ini 2. ./frpc -c ./frpc.ini 3. ssh -p 18511 tester@157.208.90.80 **Describe the results you received:** 可以通过ssh远程到目标机器上,输入ls 等命令都是正常的,但是如果有5min左右未输入命令,那么就会卡住,无法输入任何命令。 **Describe the results you expected:** 希望超过ssh的配置文件/etc/ssh/sshd_config 中设置的ClientAliveInterval就主动断开连接。 **Additional information you deem important (e.g. issue happens only occasionally):** **Can you point out what caused this issue (optional)**
gitea-mirror 2026-05-05 12:31:28 -06:00
Author
Owner

@vinqin commented on GitHub (Jan 9, 2019):

试试

ssh -o ServerAliveInterval=60 -p 18511 tester@157.208.90.80
<!-- gh-comment-id:452811726 --> @vinqin commented on GitHub (Jan 9, 2019): 试试 ```bash ssh -o ServerAliveInterval=60 -p 18511 tester@157.208.90.80 ```
Author
Owner

@elvizlai commented on GitHub (Jan 25, 2019):

maybe health_check_max_failed to small, trying to enlarge this param.

<!-- gh-comment-id:457412321 --> @elvizlai commented on GitHub (Jan 25, 2019): maybe `health_check_max_failed` to small, trying to enlarge this param.
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#823
No description provided.