Vscode remote ssh
0.1 Install plugin Search for Remote-SSH in the plugins store, and install it.
0.2 Edit .config Open the .config file.
In Windows, the path of this file maybe: C:\user\username\.ssh\.config.
In Ubuntu, the path of this file maybe: /home/username/.ssh/.config.
You can also find the file via Remote-SSH plugin in vscode, as the picture below:
Edit it in vscode:
Host alias # customize the name of your remote server HostName hostname # server ip User user # username IdentityFile ~/.ssh/id_rsa# the rsa secrete key if you want to log in the server without password, see section 0.3 Then you can see the remote server under SSH of picture 1, click it and connect to your server.