Railway SSH exiting

I linked one of my local projects to service 0b3152c5-ec9a-4f5c-9119-200c729c9241 in project aa007b2c-8b99-4f2c-b180-0ef1820c05ab in environment 52b2b055-a3b9-43ee-87d9-225aaebfb26d with railway link. However, when I attempt to run railway ssh, this is the output:

$ railway ssh                                                                                                                                                                                                   
  ✓ Connected to interactive shell
$ 

Where the command exits with code 125. How do I fix this?

Solved

3 Replies

This is what my terminal looks like when running railway ssh

Attachments


2 months ago

Exit code 125 with an immediate exit typically means the container doesn't have a shell available. Railway's SSH feature requires either /bin/bash or /bin/sh to exist in your container, it's not using traditional SSH but rather a WebSocket-based connection that spawns a shell process.


Status changed to Awaiting User Response Railway about 2 months ago


Ah, I see. That makes sense.

Changed to using an alpine image instead of scratch and that fixed my issue.

Thanks!


Status changed to Awaiting Railway Response Railway about 2 months ago


Status changed to Solved 0x5b62656e5d about 2 months ago


Loading...