[GH-ISSUE #4953] kex_exchange_identification: Connection closed by remote host #3906

Closed
opened 2026-05-05 14:29:31 -06:00 by gitea-mirror · 0 comments
Owner

Originally created by @YangZ1988 on GitHub (Aug 25, 2025).
Original GitHub issue: https://github.com/fatedier/frp/issues/4953

Bug Description

按照Example Usage在服务器和客户端分别启用了frps 和frpc,连接成功,
new proxy [ssh] type [tcp] success

但是执行ssh -vv -p port user@ip 出现以下错误

OpenSSH_9.9p1, LibreSSL 3.3.6
debug1: Reading configuration data ~/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug2: resolve_canonicalize: hostname ip is address
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to ip [ip] port port.
debug1: Connection established.
debug1: identity file /Users/yang/.ssh/id_rsa type 0
debug1: identity file /Users/yang/.ssh/id_rsa-cert type -1
debug1: identity file /Users/yang/.ssh/id_ecdsa type -1
debug1: identity file /Users/yang/.ssh/id_ecdsa-cert type -1
debug1: identity file /Users/yang/.ssh/id_ecdsa_sk type -1
debug1: identity file /Users/yang/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /Users/yang/.ssh/id_ed25519 type -1
debug1: identity file /Users/yang/.ssh/id_ed25519-cert type -1
debug1: identity file /Users/yang/.ssh/id_ed25519_sk type -1
debug1: identity file /Users/yang/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /Users/yang/.ssh/id_xmss type -1
debug1: identity file /Users/yang/.ssh/id_xmss-cert type -1
debug1: identity file /Users/yang/.ssh/id_dsa type -1
debug1: identity file /Users/yang/.ssh/id_dsa-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_9.9
kex_exchange_identification: Connection closed by remote host
Connection closed by ip port port

frpc Version

0.64.0

frps Version

0.64.0

System Architecture

server: linux/amd, client: linux/amd, remote login: macOS/arm

Configurations

server:

bindPort = x

auth.method = "token"
auth.tokenSource.type = "file"
auth.tokenSource.file.path = "pss"

client:

serverAddr = "x.x.x.x"
serverPort = x
transport.tls.enable = false
auth.method = "token"
auth.tokenSource.type = "file"
auth.tokenSource.file.path = "pss"

proxies
name = "ssh"
type = "tcp"
localIP = "y.y.y.y"
localPort = 22
remotePort = y

Logs

kex_exchange_identification: Connection closed by remote host
Connection closed by ip port port

Steps to reproduce

...

Affected area

  • Docs
  • Installation
  • Performance and Scalability
  • Security
  • User Experience
  • Test and Release
  • Developer Infrastructure
  • Client Plugin
  • Server Plugin
  • Extensions
  • Others
Originally created by @YangZ1988 on GitHub (Aug 25, 2025). Original GitHub issue: https://github.com/fatedier/frp/issues/4953 ### Bug Description 按照Example Usage在服务器和客户端分别启用了frps 和frpc,连接成功, new proxy [ssh] type [tcp] success 但是执行ssh -vv -p port user@ip 出现以下错误 OpenSSH_9.9p1, LibreSSL 3.3.6 debug1: Reading configuration data ~/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files debug1: /etc/ssh/ssh_config line 54: Applying options for * debug2: resolve_canonicalize: hostname ip is address debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling debug1: Connecting to ip [ip] port port. debug1: Connection established. debug1: identity file /Users/yang/.ssh/id_rsa type 0 debug1: identity file /Users/yang/.ssh/id_rsa-cert type -1 debug1: identity file /Users/yang/.ssh/id_ecdsa type -1 debug1: identity file /Users/yang/.ssh/id_ecdsa-cert type -1 debug1: identity file /Users/yang/.ssh/id_ecdsa_sk type -1 debug1: identity file /Users/yang/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /Users/yang/.ssh/id_ed25519 type -1 debug1: identity file /Users/yang/.ssh/id_ed25519-cert type -1 debug1: identity file /Users/yang/.ssh/id_ed25519_sk type -1 debug1: identity file /Users/yang/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /Users/yang/.ssh/id_xmss type -1 debug1: identity file /Users/yang/.ssh/id_xmss-cert type -1 debug1: identity file /Users/yang/.ssh/id_dsa type -1 debug1: identity file /Users/yang/.ssh/id_dsa-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_9.9 kex_exchange_identification: Connection closed by remote host Connection closed by ip port port ### frpc Version 0.64.0 ### frps Version 0.64.0 ### System Architecture server: linux/amd, client: linux/amd, remote login: macOS/arm ### Configurations server: bindPort = x auth.method = "token" auth.tokenSource.type = "file" auth.tokenSource.file.path = "pss" client: serverAddr = "x.x.x.x" serverPort = x transport.tls.enable = false auth.method = "token" auth.tokenSource.type = "file" auth.tokenSource.file.path = "pss" [[proxies]] name = "ssh" type = "tcp" localIP = "y.y.y.y" localPort = 22 remotePort = y ### Logs kex_exchange_identification: Connection closed by remote host Connection closed by ip port port ### Steps to reproduce 1. 2. 3. ... ### Affected area - [ ] Docs - [x] Installation - [ ] Performance and Scalability - [ ] Security - [x] User Experience - [ ] Test and Release - [ ] Developer Infrastructure - [ ] Client Plugin - [ ] Server Plugin - [ ] Extensions - [ ] Others
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#3906
No description provided.