Visual studio code 如何在Visual Studio代码中使用远程SSH设置ControlMaster?

Visual studio code 如何在Visual Studio代码中使用远程SSH设置ControlMaster?,visual-studio-code,vscode-remote,ssh-config,Visual Studio Code,Vscode Remote,Ssh Config,我使用带有远程SSH扩展的Visual Studio代码,不想在登录后多次进行身份验证。因此,我使用ssh\u config搜索ControlMater选项以进行设置 在我连接后,我收到下面的错误消息 无法连接到Leo OA:无法访问或不支持Linux x86\u 64(数据包\u写入\u轮询:连接到未知端口-1:权限被拒绝) 我的环境: Client: Visual Studio Code 1.35 Stable Windows 10 1803 Server:

我使用带有远程SSH扩展的Visual Studio代码,不想在登录后多次进行身份验证。因此,我使用ssh\u config搜索ControlMater选项以进行设置

在我连接后,我收到下面的错误消息

无法连接到Leo OA:无法访问或不支持Linux x86\u 64(数据包\u写入\u轮询:连接到未知端口-1:权限被拒绝) 我的环境:

Client:

    Visual Studio Code 1.35 Stable

    Windows 10 1803

Server: 

    Ubuntu 16.04 LTS
下面是我的设置文件

# Read more about SSH config files: https://linux.die.net/man/5/ssh_config
Host STONE-OA
    HostName 10.32.21.123
    User rock

Host Leo-OA
    HostName 10.32.21.123
    User root
    Port 60001

Host *
    ControlMaster auto
    ControlPath ~/.ssh/sockets/%r@%h-%p
    ControlPersist 600

我想知道主要问题是什么以及如何解决。谢谢大家。

Windows不支持此功能。 简单地在没有VS代码的PowerShell中使用ControlMater在Windows上运行ssh也有问题。但是,您可以在WSL中毫无问题地使用ControlMater

如果您在macOS和Linux上,并且希望减少必须输入密码或令牌的频率,则可以在本地计算机上启用ControlMaster功能,以便OpenSSH在单个连接上运行多个SSH会话