I have tried every single solution on the internet, not working.
when I input the ssh, it reports:
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
debug1: identity file /home/zhang/.ssh/id_rsa type 0
debug1: identity file /home/zhang/.ssh/id_rsa-cert type -1
debug1: identity file /home/zhang/.ssh/id_ecdsa type -1
debug1: identity file /home/zhang/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/zhang/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/zhang/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/zhang/.ssh/id_ed25519 type -1
debug1: identity file /home/zhang/.ssh/id_ed25519-cert type -1
debug1: identity file /home/zhang/.ssh/id_ed25519_sk type -1
debug1: identity file /home/zhang/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/zhang/.ssh/id_xmss type -1
debug1: identity file /home/zhang/.ssh/id_xmss-cert type -1
debug1: identity file /home/zhang/.ssh/id_dsa type -1
debug1: identity file /home/zhang/.ssh/id_dsa-cert type -1
type or paste code here
1 Like
I have tried another day, still it doesn’t work. Many of the issues online has said SSH tunnel in Cloudflare Zero Trust is not working at all, but http/https works, such as this report: (尝试转发22端口,发现并不能通过) https://www.aoi.ai/articles/27/#24-cloudflare-zerotrust
I have excluded all the possibilities of firewall policies, since I deployed SSH tunnel on different server from various networks and places but they all have the same error
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
I’ve also tried updated TCP instead of SSH, as Issue #503 (for my case, the latest cloudflared just use tcp instead of ssh) https://github.com/cloudflare/cloudflared/issues/503) mentioned, but still it doesn't work.
I ran into the same issue, everything has been working before just fine.
I use one proxy server to ssh in to other servers. The proxy server (1) runs the cloudflared and the tunnel is configured to point to another server (2) from there. This therefore only required the SSH key of that last server (2).
I can still ssh into the proxy server directly manually (1) and from there ssh into the last server (2) without any issues. But when doing so directly I hit exact same error message as above.
I have the same problem .
kex_exchange_identification: Connection closed by remote host
Connection closed by UNKNOWN port 65535
1 Like
I also have the same problem,