Codex App fails to discover Remote SSH connections despite working SSH and authenticated remote Codex CLI
What version of the Codex App are you using (From “About Codex” dialog)?
26.727.40816 (6067)
What subscription do you have?
plus
What platform is your computer?
Darwin 25.5.0 arm64 arm
What issue are you seeing?
Codex Desktop fails to discover Remote SSH connections although SSH and remote Codex CLI work
Summary
Codex Desktop shows Failed to discover remote SSH connections when trying to add a new SSH host.
The host works normally with OpenSSH and the remote Codex CLI is installed and authenticated.
Environment
- Codex Desktop version: 26.727.40816 (build 6067)
- Local OS: macOS 26.5.2 (build 25F84)
- Remote OS: Ubuntu Linux, aarch64 (ARM64)
- Remote Codex CLI: 0.146.0
- SSH authentication: public-key, non-interactive
SSH config
Host codex-oci
HostName <redacted>
User ubuntu
Reproduction
- Confirm the SSH config entry works:
``bash``
ssh -o BatchMode=yes -o ConnectTimeout=10 codex-oci 'echo connected'
Output: connected
- Confirm remote Codex:
``bash``
ssh codex-oci 'codex --version'
Output: codex-cli 0.146.0
- In Codex Desktop, create or open a Remote SSH project.
Actual result
The app shows: Failed to discover remote SSH connections
Expected result
The codex-oci host should be discovered and selectable as a remote project host.
Notes
- A different Remote SSH connection already exists in the app.
- Restarting Codex Desktop and simplifying
~/.ssh/configdid not resolve the problem. bash,tar, andcurlare available on the remote host.
What steps can reproduce the bug?
- Add a working SSH host entry to
~/.ssh/config:
``sshconfig``
Host codex-oci
HostName <redacted>
User ubuntu
- Verify that SSH authentication works non-interactively:
``bash``
ssh -o BatchMode=yes -o ConnectTimeout=10 codex-oci 'echo connected'
Output:
``text``
connected
- Verify that Codex is installed and authenticated on the remote host:
``bash``
ssh codex-oci 'codex --version'
ssh codex-oci 'codex login status'
Output:
``text``
codex-cli 0.146.0
logged in
- Open Codex Desktop and try to create or open a Remote SSH project.
- Codex Desktop immediately shows:
``text``
Failed to discover remote SSH connections
Session ID, token-limit usage, and context-window usage are not applicable because the failure occurs before a Codex session starts.
What is the expected behavior?
_No response_
Additional information
_No response_