SSH not working. Error: A shell is required to open a console.
alandotcom
PROOP

a month ago

This just started happening. Image hasn't changed.

Base image is node:24.16.0-alpine

❯ railway ssh

Using SSH key from file /Users/xxxxx/.ssh/id_ed25519.pub: id_ed25519

The console couldn't start because this container doesn't include a shell (bash or sh).

A shell is required to open a console.

Connection to ssh.railway.com closed.

$20 Bounty

6 Replies

Status changed to Open Railway about 1 month ago


Make sure you have latest deployment active and running, if your app is Serverless then probably your deployment is sleeping because it didn't receive traffics


Railway's SSH requires either /bin/bash or /bin/sh to exist in your container, as it doesn't use traditional SSH but rather a websocket-based connection that spawns a shell process.


i just encounter this issue on my rust project, it is fixed by changing the base image version to non-alpine image, i change my rust base image version to rust:latest and that fixed it, i think the same would work for node too, try use something like node:latest as your base image version


mayori

i just encounter this issue on my rust project, it is fixed by changing the base image version to non-alpine image, i change my rust base image version to `rust:latest` and that fixed it, i think the same would work for node too, try use something like `node:latest` as your base image version

alandotcom
PROOP

a month ago

It worked fine on alpine the day before


0x5b62656e5d

Railway's SSH requires either `/bin/bash` or `/bin/sh` to exist in your container, as it doesn't use traditional SSH but rather a websocket-based connection that spawns a shell process.

alandotcom
PROOP

a month ago

Yes, sh is there


a month ago

Should be fixed soon!


Status changed to Open brody 12 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...