@x9_ovo【攻略】解决 Codex 在 VSCode/Cursor Extension Remote SSH 下登录报 403:Country, region, or territory not supported 中发帖

最近自己和身边的人都遇到在vscode里使用codex插件(不是cli)无法在服务器上使用,发一个貌似可复现的解决方案,给遇到同样问题的人参考。 
问题现象
我本地使用 Codex / Cursor 一切正常,远程服务器也能正常 curl 到 OpenAI,CLI 版本也可以正常对话,但只要在 Remote SSH 窗口里使用插件版登录,就会报错:
Sign-in could not be completed
Token exchange failed: token endpoint returned status 403 Forbidden: Country, region, or territory not supported
按照github issue中部分解决方法,尝试先在本地或者cli中登录然后复制auth.json到.codex文件夹,能够进入登录态,但是对话会显示 t...