VSCode failed to connect to the SSH remote server under Windows

Recently, I installed VSCode under Win to connect to the lab server through SSH, but I got an error when I selected the system platform (Win Linux Mac). I couldn't connect anyway, and I didn't give the step of entering the password. Finally, I checked some information on the Internet and found that I need to add Git environment variables.
The summary method is as follows:
1. Be sure to install git for windows
2. Delete the .ssh/config file created before in VSCode, delete the relevant ip information, and get it again later. The file location is C:\Users\hyper\.ssh
3. Set the environment variables of git. After git is installed by default, only D:\Git\cmd is included in the environment variables; you need to add D:\Git\usr\bin; because ssh .exe several paths in this bin
four , in the normal step in VSCode SSH connection is provided and on it.

Guess you like

Origin blog.csdn.net/qq_38337524/article/details/109708636