Skip to content

SSH Command: Handle Identity Files#926

Merged
m-abdelwahab merged 2 commits into
railwayapp:masterfrom
KazWolfe:ssh-identity-pass
Jun 3, 2026
Merged

SSH Command: Handle Identity Files#926
m-abdelwahab merged 2 commits into
railwayapp:masterfrom
KazWolfe:ssh-identity-pass

Conversation

@KazWolfe
Copy link
Copy Markdown
Contributor

@KazWolfe KazWolfe commented May 30, 2026

Inspired by #925. If Railway wants to use a file-based SSH key, it will explicitly pass that key to the SSH command via -i. This helps cases where a user has a key at e.g., railway_key, which would not automatically be used by the SSH command. Should fix, e.g., #922.

Also fixes key sorting to always prioritize agent keys over file keys, as agents generally have tighter security guarantees.

@m-abdelwahab
Copy link
Copy Markdown
Collaborator

LGTM. Thank you so much for the contribution @KazWolfe!

@m-abdelwahab m-abdelwahab merged commit 1e18994 into railwayapp:master Jun 3, 2026
6 of 7 checks passed
codyde added a commit that referenced this pull request Jun 4, 2026
…-browser-login

* origin/master: (28 commits)
  chore: Release railwayapp version 5.0.0
  feat(sandbox): fork, templates, and `--variable`/`--env-file` on create (#933)
  chore: Release railwayapp version 4.68.0
  feat(volume): include modified time in files JSON (#931)
  chore: Release railwayapp version 4.67.0
  Add service source connection support (#934)
  chore: Release railwayapp version 4.66.2
  Make GraphQL HTTP timeout configurable via RAILWAY_HTTP_TIMEOUT (#932)
  chore: Release railwayapp version 4.66.1
  feat(volume): show status and scheduled deletion date in volume list (#928)
  SSH Command: Handle Identity Files (#926)
  chore: Release railwayapp version 4.66.0
  feat(sandbox): `railway sandbox` commands (create/list/ssh/exec/destroy) (#925)
  chore: Release railwayapp version 4.65.0
  SSH Agent Support, `russh` edition. (#915)
  chore: Release railwayapp version 4.64.0
  chore: Release railwayapp version 4.63.0
  Rephrase agent advisory and gate by CLI version (#919)
  Forward --remote to setup agent in cli.new installer (#918)
  chore: Release railwayapp version 4.62.0
  ...

# Conflicts:
#	src/consts.rs
#	src/util/mod.rs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release/patch Author patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants