Open
Description
Description
For me is #477 not fixed. This happens with latest main release of Coder v2.18.0 and latest Jetbrains Gateway 2024.3. Coder provider plugin is at version 2.15.1.
As one could see the --bg host is not found on a Windows machine. Even the entry is in ssh config file. Curious is that the same Workspace (we open IntelliJ via Button and using URI handler) works on a linux system. It seems this has something to do with Windows implementation.
This is a blocker for us as it is unable to start new IntelliJ based workspaces from Windows clients.
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
Bert-Derijckere commentedon Dec 25, 2024
I am running into the same problem on a Windows machine. I've tried the connection from within IntelliJ Ultimate and from within Jetbrains Gateway.
There seems to be a problem in de SSH config. I cannot even connect with plain ssh.
I run
coder config-ssh
, I can see the changes in~/.ssh/config
. When I runssh coder.a
, I get the following output:It seems to want to fail to execute the ProxyCommand
If I change the single \ in the ProxyCommand to \, from
ProxyCommand C:\Users\b.derijckere\AppData\Local\coder-gateway\82pk376jkrj44.pit-1.try.coder.app\coder-windows-amd64.exe ...
toProxyCommand C:\\Users\\b.derijckere\\AppData\\Local\\coder-gateway\\82pk376jkrj44.pit-1.try.coder.app\\coder-windows-amd64.exe ...
, then the SSH connection succeeds.Unfortunately, I cannot make the same changes in de config for the Host coder-jetbrain--... since that config is overwritten by the coder-gateway plugin each time.
Coder version:
Coder plugin version in JetBrains Gateway en IntellijJ Ultimate: 2.15.1
code-asher commentedon Jan 3, 2025
Oh interesting, sounds like we need to update the config to use the double slashes. I wonder if it works when the shell is command prompt or powershell, but not sh?
MrPeacockNLB commentedon Jan 3, 2025
@code-asher let me know if I can support you or if you need more information.
code-asher commentedon Jan 6, 2025
I am not currently able to work on the plugin, but definitely happy to review any PRs. One trick here though is that I think we may need to make sure it still works for Powershell/command prompt as well, although I think the double slash syntax would work there as well?
code-asher commentedon Jan 6, 2025
I will bring up the issue at our next planning meeting though and see if someone can take it.
isaacte commentedon Feb 11, 2025
Same problem here when trying to connect from the Jetbrains Gateway. Using the manual configuration via SSH does not have any problem.
djarbz commentedon Feb 16, 2025
I am experiencing a similar issue on Windows.
This is a brand new computer and I just installed Gateway.
JetBrains Gateway 2024.3.3 Build #GW-243.24978.56
Coder version: 2.18.0
Clicking on the IDE launcher from the Workspace dashboard launches Gateway.

As far as I can tell, nothing is written to my ssh config file.
I did notice in the idea.log that it was having difficulty with the ssh agent, to which I noticed that the
OpenSSH Authentication Agent
service was disabled. I started that, but still have the above error.I then installed the coder CLI and generated the coder block in my ssh config, still no luck.
However, I noticed that my hostname is actually
coder-jetbrains-coder.domain.com-bg--user-workspace.main
so I duplicated the block and updated the hostname toHost coder-jetbrains-coder.*
.Now it gets further, but still fails to connect.
Sanitized Gateway Log for the attempt.
djarbz commentedon Feb 18, 2025
I was able to successfully connect on my older laptop.
Here is the ssh config
And coder CLI version
Jetbrains 2024.1.1
Coder Plugin 2.10.0
djarbz commentedon Feb 18, 2025
I just updated the plugin on the laptop, I go a No Connection Handle returned error when it tired to connect to the workspace.
Clicked OK, but now is failing to connect with the
coder-jetbrains-coder.domain.com-bg--user-workspace.main
style URL.I think I can confidently say the issue is with the new connection URL.
I also checked my DNS logs when trying to connect from my new PC after adding the corrected ssh config host and there is a query for the new style URL, which obviously fails to resolve.
code-asher commentedon Feb 18, 2025
For anyone on 2.18.1, the problem might be #534.
For pre-2.18.1, the problem is something else.