I am adding the ssh key via the web admin and it does not show in CLI and viceversa
alexmoruz
HOBBYOP

9 days ago

I am adding ssh key from CLI and after that it does not allow me to ssh into the service although I linked the key to project. Also when adding the key in web admin it does not show in the CLI

Solved$10 Bounty

2 Replies

Status changed to Open Railway 9 days ago


andrewkat52
FREE

9 days ago

Hey , railway has two separate scopes for ssh keys and they don't share the same list run both of these and compare:

railway ssh keys list

railway ssh keys list --workspace <your-workspace-id>

also make sure you're not using a project token (RAILWAY_TOKEN) because ssh key management flat out doesn't work with it you need a workspace api token or just run railway login


andrewkat52

Hey , railway has two separate scopes for ssh keys and they don't share the same list run both of these and compare: `railway ssh keys list` `railway ssh keys list --workspace <your-workspace-id>` also make sure you're not using a project token (RAILWAY\_TOKEN) because ssh key management flat out doesn't work with it you need a workspace api token or just run railway login

alexmoruz
HOBBYOP

9 days ago

I didn't manage to get the `railway ssh keys list --workspace ` command to work, although found that the key needs to be added to the account and not to the workspace in order for it to work


Status changed to Solved Railway 9 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...