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:Jump to 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
8 Replies
<#1349399391278207028>
Category
Help needed
Product
Coder (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
My docker-compose.yaml, for reference:
does
coder ssh
work?I just saw what is causing the problem, but couldn't find a solution yet...
When I created the same template I'm using, but on PUBLIC subnet, it works, I can connect to code-server and VSCode desktop. But when I created it in a PRIVATE subnet (even with 0.0.0.0/0 and all traffic inbound from my VPN security group), I suddendly couldn't connect to VSCode Desktop, I get the same
Connection closed by UNKNOWN port 65535
errror from beforehey, this sounds like firewalling issues, but i'm not really sure how to help you with that
were you able to solve it?
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
nice
@Phorcys closed the thread.