codex - 💡(How to fix) Fix iOS Codex: "Add SSH Host" only supports password authentication, missing identity file / key-based auth [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
openai/codex#23543Fetched 2026-05-20 03:48:24
View on GitHub
Comments
2
Participants
2
Timeline
7
Reactions
0
Author
Timeline (top)
labeled ×4commented ×2closed ×1

Root Cause

In production and enterprise environments, password-based SSH authentication is almost always disabled for security reasons. Standard practice is to use key-based authentication (PubkeyAuthentication yes, PasswordAuthentication no).

This means the iOS Codex Connections feature is effectively unusable for connecting to any properly secured production server.

RAW_BUFFERClick to expand / collapse

What variant of Codex are you using?

App (ChatGPT iOS, Codex feature — Connections)

What issue are you seeing?

The "Add SSH Host" form in the iOS ChatGPT app's Codex Connections only provides a Password field for SSH authentication. There is no option to specify an Identity File (private key) or use SSH agent forwarding.

iOS Codex Add SSH Host — password only

The form currently has these fields:

  • Icon
  • Display name
  • Host
  • Port (default 22)
  • Username
  • Password (Required)

No Identity File / Private Key field is present.

Why this matters

In production and enterprise environments, password-based SSH authentication is almost always disabled for security reasons. Standard practice is to use key-based authentication (PubkeyAuthentication yes, PasswordAuthentication no).

This means the iOS Codex Connections feature is effectively unusable for connecting to any properly secured production server.

Expected behavior

The "Add SSH Host" form should support at least one of the following key-based authentication methods:

  1. Identity File — allow the user to select or paste a private key file (e.g. id_ed25519, id_rsa)
  2. SSH Agent — leverage the system's SSH agent if available
  3. Respect ~/.ssh/config — auto-detect IdentityFile directives from the user's SSH config (as the desktop app partially does, though imperfectly — see #18301)

The ideal UX would be:

  • Add an "Authentication Method" toggle: Password / Key File
  • When "Key File" is selected, show a file picker or text area for the private key
  • Optionally allow specifying a passphrase for encrypted keys

Related issues

  • #18301 — Desktop app SSH defaults to id_rsa even when using id_ed25519
  • #18114 — Feature request for SSH remote development (mentions "password, key file, or agent forwarding")
  • #20636 — SSH remote with key auth silently fails on macOS-to-macOS

Environment

  • Platform: iOS (ChatGPT app, Codex feature)
  • Remote host: Linux server with key-only SSH authentication

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

The "Add SSH Host" form should support at least one of the following key-based authentication methods:

  1. Identity File — allow the user to select or paste a private key file (e.g. id_ed25519, id_rsa)
  2. SSH Agent — leverage the system's SSH agent if available
  3. Respect ~/.ssh/config — auto-detect IdentityFile directives from the user's SSH config (as the desktop app partially does, though imperfectly — see #18301)

The ideal UX would be:

  • Add an "Authentication Method" toggle: Password / Key File
  • When "Key File" is selected, show a file picker or text area for the private key
  • Optionally allow specifying a passphrase for encrypted keys

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING