我正在使用 remote ssh 扩展名从我的MAC连接到CENTOS 7.4计算机。 v1.42 一切正常。我昨天更新为 v1.43 ,现在VSCode无法连接。我收到以下错误,并且“挂起”,直到选择关闭远程连接为止。我切换回v1.42,它可以正常工作。其他人看到了吗?
[11:48:35.614] stderr> Authenticated to 172.18.116.204 ([172.18.116.204]:22).
[11:48:35.704] > Warning: no access to tty (Bad file descriptor).
[11:48:35.707] > Thus no job control in this shell.
[11:48:36.308] stderr> stty:
[11:48:36.308] stderr> standard input: Inappropriate ioctl for device
[11:48:36.309] stderr>
[11:48:38.151] stderr> stty:
[11:48:38.152] stderr> standard input: Inappropriate ioctl for device
[11:48:38.152] > ready: 552eb5fb743e
[11:48:38.180] > Linux 3.10.0-693.el7.x86_64 #1 SMP Tue Aug 22 21:09:27 UTC 2017
[11:48:38.180] Platform: linux
[11:48:38.246] stderr> bash: line 1: syntax error near unexpected token `then'
[11:48:38.246] stderr> bash: line 1: `then'
[11:48:38.247] stderr> function: Command not found.
[11:48:38.247] > 552eb5fb743e: running
[11:48:38.248] stderr> COMMIT_ID=78a4c91400152c0f27ba4d363eb56d2835f9903a: Command not found.
[11:48:38.248] stderr> EXTENSIONS=: Command not found.
[11:48:38.249] stderr> TELEMETRY=: Command not found.
[11:48:38.263] stderr> export: Permission denied.
[11:48:38.282] stderr> ALLOW_CLIENT_DOWNLOAD=1: Command not found.
[11:48:38.282] stderr> VSCODE_AGENT_FOLDER: Undefined variable.
[11:48:38.283] stderr> _lock: Command not found.
答案 0 :(得分:11)
这是VSCode Remote-SSH版本0.50.0中的一个未解决问题。参见Issue #2527。
我解决该问题的方法是将其降级到0.49.0版。
我还建议您在设置中禁用扩展自动更新,以免将来使用此扩展或任何其他扩展发生这种情况。
答案 1 :(得分:0)
我认为这不是VSCode(v1.42或1.43)的问题。您可以尝试将Remote-SSH扩展降级到0.49版。
答案 2 :(得分:0)
我用Cleaning up the VS Code Server on the remote解决了。没有卸载,没有降级...
简单地:
kill -9 `ps ax | grep "remoteExtensionHostAgent.js" | grep -v grep | awk '{print $1}'`
kill -9 `ps ax | grep "watcherService" | grep -v grep | awk '{print $1}'`
rm -rf ~/.vscode-server # Or ~/.vscode-server-insiders
编辑:
在Windown 10上运行VS Code v1.43,远程SSH扩展v0.50。
远程计算机是CentOS 7