MAC VSCode远程ssh扩展无法连接Linux服务器

Jus*_*ong 3 macos ssh visual-studio-code

我正在尝试使用 VSCode 远程 ssh 扩展来访问学校机器上的文件夹。我认为最初连接已建立,因为它提示我输入密码。但随后窗口卡住了,输出如下:

  [16:27:58.275] > Warning: no access to tty (Inappropriate ioctl for device).
    > Thus no job control in this shell.
    [16:27:58.340] > ready: 4b31ee9ef295
    [16:27:58.410] > Linux 4.19.0-13-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28)
    [16:27:58.410] Platform: linux
    [16:27:58.552] stderr> bash: line 360: syntax error near unexpected token `('
    [16:27:58.552] stderr> bash: line 360: `echo "* as described in the license (https://go.microsoft.com/fwlink/?linkid=2077057)"'
    [16:27:58.552] stderr> function: Command not found.
    [16:27:58.552] stderr> Bad : modifier in $ '-'.
    [16:27:58.553] > 4b31ee9ef295: running
    > *
    >  
    [16:27:58.553] stderr> VSCH_LOGFILE: Undefined variable.
    [16:27:58.553] stderr> LISTENING_ON=: Command not found.
    [16:27:58.554] stderr> VSCH_LOGFILE: Undefined variable.
    [16:27:58.554] stderr> WEBUITOKEN=: Command not found.
    [16:27:58.554] stderr> LISTENING_ON: Undefined variable.
Run Code Online (Sandbox Code Playgroud)

问题不应该出现在我学校的服务器端,因为我在zsh中使用了ssh命令并且它成功连接了。那么谁能告诉我问题出在哪里?先感谢您!

小智 8

打开命令选项板,运行“Remote-SSH:设置”,然后将“Remote.SSH:远程服务器侦听套接字”配置为 true。这对我来说很有效。