Coder.comC
Coder.com11mo ago
10 replies
Igor Zimmer

Installed Coder, but can't connect to code-server with VSCode

I just recently installed Coder with the docker-compose.yaml file, it's running on an EC2 instance, in a private subnet that I connect with the Cloudflare ZTNA VPN. I can connect to it, create a template and start a workspace, the problem is, when I try to connect to Coder with VSCode, it tries for a long time then I get this error:

OpenSSH_9.9p1, OpenSSL 3.3.2 3 Sep 2024
Connection closed by UNKNOWN port 65535
local-server-1> ssh child died, shutting down

[19:54:15.318] WARN: $PLATFORM is undefined in installation script output. Errors may be dropped.
[19:54:15.319] Failed to parse remote port from server output
[19:54:15.324] Resolver error: Error: ...
Solution
Hey, in the end I had to put it into a public subnet AND remove all that I was allowing into my SG, then it worked
Was this page helpful?