railway ssh config generates OpenSSH client config blocks
Introduced 2026-05-19 · score 0.94
HOW TO USE IT
To configure an OpenSSH entry for a Railway service, run `railway ssh config --service <service>`; it adds or updates a Railway block in `~/.ssh/config`.
railway ssh config --service <service>railway ssh config --service <service> --dry-runWHY THIS HELPS
Configure an OpenSSH client entry for a Railway service.
REQUIREMENTS AND LIMITATIONS
- Version: v4.59.0
- --service <SERVICE>: Selects the service; the docs do not state whether this option is required for `config`.
- --project <PROJECT>: Selects the project; requiredness is not stated.
- --environment <ENVIRONMENT>: Selects the environment; requiredness is not stated.
- --path <PATH>: SSH config file to update; defaults to `~/.ssh/config`.
- --alias <ALIAS>: Host alias to use in the generated OpenSSH config block.
- --identity-file <PATH>: Emits an `IdentityFile` directive for this private key path.
- --dry-run: Prints the generated block without writing the SSH config file.
- Prerequisite: Authenticate with a Railway account before using the CLI (`railway login`).
FIRST-PARTY EVIDENCE
- https://github.com/railwayapp/cli/releases/tag/v4.59.0
- https://docs.railway.com/cli/ssh
- https://docs.railway.com/cli
Check the installed version and the source before using it. Entry JSON