Codex App fails to discover Remote SSH connections despite working SSH and authenticated remote Codex CLI

Open 💬 0 comments Opened Jul 30, 2026 by leeminwuk

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

  1. Confirm the SSH config entry works:

``bash
ssh -o BatchMode=yes -o ConnectTimeout=10 codex-oci 'echo connected'
``

Output: connected

  1. Confirm remote Codex:

``bash
ssh codex-oci 'codex --version'
``

Output: codex-cli 0.146.0

  1. 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/config did not resolve the problem.
  • bash, tar, and curl are available on the remote host.

What steps can reproduce the bug?

  1. Add a working SSH host entry to ~/.ssh/config:

``sshconfig
Host codex-oci
HostName <redacted>
User ubuntu
``

  1. Verify that SSH authentication works non-interactively:

``bash
ssh -o BatchMode=yes -o ConnectTimeout=10 codex-oci 'echo connected'
``

Output:

``text
connected
``

  1. 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
``

  1. Open Codex Desktop and try to create or open a Remote SSH project.
  1. 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_

View original on GitHub ↗