Jetbrains Gateway connection
Hey everyone,
trying to setup Gateway to connect to a workspace for further testing, but I'm not sure if I'm missing something here. According to the docs I have to enter the Host like on the coder server itself (e.g. coder.workspace-name) but that hostname won't be resolved since Gateway is not running on the same machine as coder itself. Do I have to run a SSH Tunnel to the server running coder or what am I missing here? Thanks!
28 Replies
you have to run
coder config-ssh
beforeI did, but gateway is still on a different machine so won't find
coder.workspace
Maybe for added context: Our Coder Server is running on a Hetzner Cloud Server.i don't really get it
gateway is running on a non-coder machine ?
Yes.
then what if you install the coder CLI on that machine
i don't get it
isn't jetbrains gateway just a client ?
Oh so I install coder CLI on the local system, run
coder login
and it should work thenyup
ah alright, so that's my missing step then. Let's see if that does the trick.
Mh... there doesn't seem to be a native Apple M1 Coder cli?
?
maybe that's it ?
I'm unsure as I've never used M1 before
the CLI is in coder/coder btw
aaah, I was at coder/coder-cli
yeah, I've done that mistake first time I used coder, see #feedback for what I've just posted
that looks like to be the full server though?
server and CLI are in the same binary
I don't really understand that decision but that's how they architectured it
ah alright so I simply extract the binary and should be fine. I'M also very new to mac.. ^^
Ok had to run the install script - docs could be clearer here you have to run it locally for mac/linux just like on the server itself - and it seems to work. Although Gateway is now stuck at "connecting" and I get
The workspace agent lost connection!
when running ssh coder.workspacename
via cli.
I could login and everything, just not ssh into a workspacei defo agree on the docs, it's been a recurring issue where people don't really understand what to do with the CLI problem
can you run
coder ssh workspacename -v
and show me the output ?does the terminal work from the web on that same machine ?
mhh.. nope. I get status
Running
but it looks like this. Looks like it didn't properly came back when I rebooted the server to add more RAM earlier.hah.. makes more sense now
Just restarted the workspace and it seems to work
yay
yeah it has a not so good time picking up orphans
Gateway now also connects and seems to work fine. sweet. Thanks!
great! bla bla bla
/resolve
you know the rest
lolHaha yeah ^^
cool to confirm that gateway works now
there was an issue with ssh proxycommand before
Perfect. I don't know how to use it, but the devs will 😉 So thanks again
Marked the thread as resolved.