Skip to content

SSH authentication fails in new chats: user .ssh directory denied and SSH agent unavailable #56498

Open

Description

@ezhan

What version of the Codex App are you using (From “About Codex” dialog)?

26.1016.62342

What subscription do you have?

Plus

What platform is your computer?

Win 10

What issue are you seeing?

I cannot push to GitLab from a new Codex chats. SSH worked and still works OK in older chats on the same computer.

Diagnostic results:
Access to C:\Users\eugen.ssh is denied.

ssh-add -l -E md5 returns:
Error connecting to agent: No such file or directory

SSH debug output shows it searching for keys under C:\WINDOWS.ssh instead of my user profile. All identity files are reported as type -1.

No public key is offered to GitLab.

Authentication ends with:
[email protected]: Permission denied (publickey).

The first push attempt also failed because Codex could not read C:\Users\eugen.ssh\known_hosts. Using an existing known_hosts file inside the workspace resolved host verification, but authentication still failed.

Both Git's SSH client and Windows OpenSSH were tested.

Expected behavior:
Codex should provide a supported way to use my existing SSH key or SSH agent for Git operations.

Actual behavior:
The session cannot access the user’s .ssh directory or SSH agent, so Git pushes fail. I also cannot find a “Full Access” or equivalent permission setting in the current interface.

GitLab remote using SSH

Codex session running as CodexSandboxOffline, rather than my normal Windows user

What steps can reproduce the bug?

Open new chat, ask if AI has access to SSH.

What is the expected behavior?

It can push to Gitlab

Additional information

No response

Activity

  1. added
    app
    on Oct 23, 2026
  2. added
    bug
    windows-os
    auth
    sandbox
    on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    appauthbugsandboxwindows-os

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions