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
2 Replies
Status changed to Open Railway • 9 days ago
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
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
