Add railway ssh config for OpenSSH client config blocks#905
Draft
m-abdelwahab wants to merge 3 commits into
Draft
Add railway ssh config for OpenSSH client config blocks#905m-abdelwahab wants to merge 3 commits into
railway ssh config for OpenSSH client config blocks#905m-abdelwahab wants to merge 3 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
railway ssh config, a new subcommand that emits an OpenSSH client config block for a Railway service.This unlocks tools that read
~/.ssh/config, including VS Code Remote-SSH, Cursor, Zed, JetBrains Gateway,scp,rsync, andsshfs.What changed
Added
railway ssh config--writeto idempotently upsert a marked block into~/.ssh/config--removeto delete the marked block--pathfor alternate config files--aliasfor customHostaliases-i/--identity-fileReuses the existing SSH resolution path to resolve project, environment, and service.
Uses the stable
ServiceInstance.idas the OpenSSHUser.Writes config changes atomically and sets Unix SSH config permissions.
Allows
--remove -s <service>to remove local blocks without requiring live service resolution.Quotes
IdentityFilepaths when needed.Help text