远程服务器连接Codex:Token exchange failed: token endpoint returned status 403 Forbidde
·
两步设置
一: 找到你远程服务起的/root/.vscode-server/data/Machine/settings.json,打开后加入下面这几行
{
"http.proxy": "http://127.0.0.1:7890",
"http.proxySupport": "override",
"http.proxyStrictSSL": false
}
这里面的7890根据你的代理自己调整,一般都是7890或者7892
二:打开vscode本地.ssh/config文件

找到当前服务器那一项配置文件,在最后加上RemoteForward,端口号填自己的
Host 服务器
HostName ...
User ...
Port ...
RemoteForward 7860 127.0.0.1:7890
重启再去连就行了
更多推荐



所有评论(0)