on remote servers connected via SSH, connection errors always appear. The server can connect to the network, but Codex cannot connect
Resolved 💬 3 comments Opened Dec 17, 2025 by lijin-2000 Closed Dec 17, 2025
💡 Likely answer: A maintainer (github-actions[bot], contributor)
responded on this thread — see the highlighted reply below.
What version of Codex is running?
0-73
What subscription do you have?
I can use Codex normally on Windows, but on remote servers connected via SSH, connection errors always appear. The server can connect to the network, but Codex cannot connect
Which model were you using?
_No response_
What platform is your computer?
_No response_
What issue are you seeing?
› 你好
■ stream disconnected before completion: error sending request for url (https://chatgpt.com/backend-api/codex/responses)
What steps can reproduce the bug?
Uploaded thread: 019b2cdb-1a5c-7041-afdc-8f7af32fc67b
What is the expected behavior?
_No response_
Additional information
_No response_
3 Comments
Potential duplicates detected. Please review them and close your issue if it is a duplicate.
Powered by Codex Action
Codex is often used on ssh servers, so this is most likely a configuration issue with your remote server. It's likely that certain endpoints are being blocked. You'll need to diagnose this on your system.
I tried to look up the session that you referenced, but it was never uploaded. I suspect that was also blocked.
How can I find out what port the remote server is using? I can retrieve information about OpenAI using curl on the remote server, but why can't I connect to CodeX? If I hadn't copied the Windows auth. json file to the remote server, I wouldn't have been able to log in. I have uninstalled and reinstalled, but it still hasn't been resolved. I've been troubled for 2 days now, please point me to a clear path.
<img width="2072" height="612" alt="Image" src="https://github.com/user-attachments/assets/2496e441-a3a0-478a-9b64-2f7c1f8fac5d" />