Can't connect VS Code to Linux machine for remote development

后端 未结 3 1007
醉梦人生
醉梦人生 2021-02-05 10:47

I am getting this error on VS Code and have no clue why it fails

[15:14:59.543] Log Level: 2
[15:14:59.555] remote-ssh@0.51.0
[15:14:59.555] win32 x64
[15:14:59.         


        
3条回答
  •  失恋的感觉
    2021-02-05 11:17

    For those getting this error on Windows: Check if you have multiple ssh clients installed.

    How I solved it was by adding my ssh-configuration to ALL ssh-config files. In my case I had one in

    • C:\Users\USER_NAME.ssh\config (this is the one that the remote extension used to give me connection options)
    • and another in C:\Program Data\ssh\ssh-config

    After adding my ssh-config setting to both I got the prompt to select virtual hosts' OS. Tried editing the settings.json file directly, but I think it gets confused because of the multiple ssh-configurations.

    P.S.

    Tested it for both private key and password enabled connections and it work with either.

提交回复
热议问题