VSCode v1.43远程ssh无法连接。 v1.42的作品

问题描述 投票:1回答:2

我正在使用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.
ssh visual-studio-code remote-access
2个回答
0
投票

我认为这不是VSCode(v1.42或1.43)的问题。您可以尝试将Remote-SSH扩展降级到0.49版。


0
投票

同样,这里我突然无法连接到任何服务器。如果我尝试从CMD / Powershell手动连接,效果很好。返回0.49,然后再次开始工作。

我认为问题与用户有关,因为忽略ssh / config上的用户,我可以看到正在尝试使用我的用户配置文件名称。

© www.soinside.com 2019 - 2024. All rights reserved.