[GH-ISSUE #4687] connect to local service[127.0.0.1:22] error: dial tcp 127.0.0.1:22 i/o timeout #3702

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

Originally created by @jiangzhaowei on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4687

Bug Description

frps start , frpc start, they establish connection success. then a connection to connect the frps fixed port,frps can receive the connection,and print the connection information on backend,but the frpc print connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: i/o timeout

frpc Version

0.61.1

frps Version

0.61.1

System Architecture

linux/amd64,linux arm64

Configurations

frps

bindPort = 7000
auth.token = "Frp20250224"

frpc

serverAddr = "57.201.23.107"
serverPort =7000
auth.token = "Frp20250224"

proxies
name = "test-tcp"
type = "tcp"
localIP = "127.0.0.1"
localPort = 22
remotePort = 4567

Logs

No response

Steps to reproduce

  1. start frps and frpc
    1.1start frps
    Image

1.2 start frpc
Image

  1. they establish connection
    Image

3 connect the server 4567 port
Image

4 frps receive the tcp
Image

5 frpc report i/o timeout (ps: frps and frpc device time not same)
Image

  1. use command on frpc device (ss -ltunp | grep 22) indicate the port 22 is opened
    Image

  2. so, i guess the frpc device because of not install the ssh,cause the i/o error ? the frpc device use the dropbear tool replace the ssh

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @jiangzhaowei on GitHub (Feb 26, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4687 ### Bug Description frps start , frpc start, they establish connection success. then a connection to connect the frps fixed port,frps can receive the connection,and print the connection information on backend,but the frpc print **connect to local service [127.0.0.1:22] error: dial tcp 127.0.0.1:22: i/o timeout** ### frpc Version 0.61.1 ### frps Version 0.61.1 ### System Architecture linux/amd64,linux arm64 ### Configurations ### frps bindPort = 7000 auth.token = "Frp20250224" ### frpc serverAddr = "57.201.23.107" serverPort =7000 auth.token = "Frp20250224" [[proxies]] name = "test-tcp" type = "tcp" localIP = "127.0.0.1" localPort = 22 remotePort = 4567 ### Logs _No response_ ### Steps to reproduce 1. start frps and frpc 1.1start frps ![Image](https://github.com/user-attachments/assets/e0aefc8a-e248-4636-99d8-1ceb03ead8fa) 1.2 start frpc ![Image](https://github.com/user-attachments/assets/6deb2007-39ef-43c0-889b-f99479d9cc63) 2. they establish connection ![Image](https://github.com/user-attachments/assets/c4505d18-f250-4b46-8a80-b0a3523e8b40) 3 connect the server 4567 port ![Image](https://github.com/user-attachments/assets/d739fffc-0eda-4732-9f62-adf7086e7188) 4 frps receive the tcp ![Image](https://github.com/user-attachments/assets/6c837d01-0d65-441a-9266-ebeafca2d9eb) 5 frpc report i/o timeout (ps: frps and frpc device time not same) ![Image](https://github.com/user-attachments/assets/a8ae5d39-d4c3-4dfa-a53f-94ed625d8f67) 6. use command on frpc device (ss -ltunp | grep 22) indicate the port 22 is opened ![Image](https://github.com/user-attachments/assets/5b348a53-2a09-4888-becb-b0d60058f143) 7. so, i guess the frpc device because of not install the ssh,cause the i/o error ? the frpc device use the dropbear tool replace the ssh ### Affected area - [ ] Docs - [ ] Installation - [ ] Performance and Scalability - [ ] Security - [ ] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
gitea-mirror 2026-05-05 14:22:20 -06:00
Author
Owner

@jiangzhaowei commented on GitHub (Feb 26, 2025):

frpc device not install ssh tool ,use dropbear replace。I use the MobaXterm_Personal_23.0 tool can connect the frpc device on port 22

<!-- gh-comment-id:2684016455 --> @jiangzhaowei commented on GitHub (Feb 26, 2025): frpc device not install ssh tool ,use dropbear replace。I use the MobaXterm_Personal_23.0 tool can connect the frpc device on port 22
Author
Owner

@github-actions[bot] commented on GitHub (Mar 13, 2025):

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

<!-- gh-comment-id:2719445927 --> @github-actions[bot] commented on GitHub (Mar 13, 2025): Issues go stale after 14d of inactivity. Stale issues rot after an additional 3d 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#3702
No description provided.