Windows 10 comes with the OpenSSH toolkit (C: Windows System32 OpenSSH ), but it always appears when connecting with the private key Bad owner or permissions on C:\\Users\\username/.ssh/config The plug-in Remote SSH of Visual Studio Code depends on ssh, so the same error is reported.

The permission system of Windows is different from that of Linux. Anyway, I don't understand it. Tried Official Documents The PowerShell command in does not work (see my submitted Issue )。 I also saw one Issue Maybe it's related to the Windows 10 Home I use (Home is pre installed on my computer, so I don't need to pay more to upgrade Pro).

Then I found that VSCode Remote SSH has an option remote. SSH.path Here you can specify the SSH executable file to be used. I will copy one C:\Windows\System32\OpenSSH\ Lower ssh.exe How about going to the common directory of the computer? After modification, it was immediately connected.

PS. You can change the configuration file to your own path( remote. SSH.configFile )。

Q.E.D.

Appreciation