Open GDivino opened 6 months ago
I also met this bug. I have installed cloudflared via brew install cloudflared
and I can access my remote server via ssh, but when I try to use VSCode to ssh to my server, the log shows:
local-server-1> Spawned ssh, pid=62656 OpenSSH_9.6p1, LibreSSL 3.3.6 OpenSSH_9.6p1, LibreSSL 3.3.6 zsh:1: command not found: cloudflared kex_exchange_identification: Connection closed by remote host Connection closed by UNKNOWN port 65535 kex_exchange_identification: Connection closed by remote host Connection closed by UNKNOWN port 65535 local-server-1> ssh child died, shutting down
Hey @GDivino, have you perhaps found a workaround for this issue? I was connecting without any problems until yesterday, so something seems to have gone wrong.
Update: I solved this problem by first locating the installed path of cloudflared via whereis
cmd and then modifying the ssh config files and replacing the cloudflared command with the full path.
I also met this bug. I have installed cloudflared via
brew install cloudflared
and I can access my remote server via ssh, but when I try to use VSCode to ssh to my server, the log shows:local-server-1> Spawned ssh, pid=62656 OpenSSH_9.6p1, LibreSSL 3.3.6 OpenSSH_9.6p1, LibreSSL 3.3.6 zsh:1: command not found: cloudflared kex_exchange_identification: Connection closed by remote host Connection closed by UNKNOWN port 65535 kex_exchange_identification: Connection closed by remote host Connection closed by UNKNOWN port 65535 local-server-1> ssh child died, shutting down
Describe the bug I want to be able to SSH into my raspberry pi from anywhere using cloudflare tunnels. But I ran into a road block, receiving an error of
zsh: no such file or directory
every time I ran ssh<username>@ssh.example.com
. I am using MacOS as my client, and I run raspbian OS on my raspberry pi. I followed these docs religiously but for some reason I can't get past this error (see logs below for full error log).To Reproduce Steps to reproduce the behavior (basically follow everything here):
~/.ssh/config
) with:brew install cloudflared
)<username>@ssh.example.com
Expected behavior I expect cloudflared to open up a browser authentication screen, using my cloudflare account as authentication. Once I authenticate properly, I am able to ssh into my raspberry pi.
Environment and versions
Logs and errors