-
Notifications
You must be signed in to change notification settings - Fork 664
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cloud-flare zero trust tunnel. #1394
Comments
What does "the connection fails" mean? Is connection rejected outright? Is there a timeout? Is there an authentication error? Something else? What is the output when setting |
|
If that's all you're getting then the TCP connection is not being established. That suggests whatever SSH client that is currently working for you has some special/different configuration that needs to be replicated with |
Hi,
I am experiencing an issue when trying to connect to a device using the
ssh2
package in my Node.js (client) application. The device is behind a Cloudflare Zero Trust Tunnel. While I can successfully connect using a terminal SSH client, the connection fails when using thessh2
package.I followed the Cloudflare setup instructions on both machines as outlined here: Cloudflare Zero Trust Tunnel SSH Setup. As mentioned, it works perfectly in a normal terminal but not with
ssh2
.Additionally, when I use a direct IP connection,
ssh2
works. However, in production, I do not have access to the IP and must use the Cloudflare Zero Trust Tunnel.Details:
Steps to Reproduce:
ssh2
package with the above code.Additional Context:
ssh2
package.Is there a known issue with
ssh2
when connecting to devices protected by Cloudflare Zero Trust Tunnel? Are there any workarounds or configurations that might resolve this issue?The text was updated successfully, but these errors were encountered: