Skip to content
Can't add SSH key to account

14 days ago

My workspace settings say "This workspace has no SSH keys yet" but when I try to add a key, it says its already registered.

Screenshot 2026-11-06 at 4.22.35 PM.png

Solved

2 Replies

Railway
BOT

14 days ago

Personal SSH keys and workspace SSH keys are separate lists, and the workspace page only shows keys owned by the workspace. A key can only be registered once across Railway, so this key is most likely already registered somewhere else, for example as a personal key on your account (the CLI offers to register a local key the first time you run railway ssh).

Running railway ssh keys lists your personal keys. If it's there and you want it on the workspace instead, remove it with railway ssh keys remove and then add it with railway ssh keys add --workspace <workspace-id> --key ~/.ssh/id_ed25519.pub. You can also generate a new key pair just for the workspace, as the error message suggests. More details are in the SSH docs.


Status changed to Awaiting User Response Railway • 14 days ago



Status changed to Awaiting Railway Response Railway • 14 days ago


Status changed to Solved coreylane • 14 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...