How to remotely connect to a Linux server using vscode

Article directory

1. Download the required plug-ins

2. Remote connection

3. Change the remote server name


1. Download the required plug-ins

open store

Download Remote-SSH

Download Remote - SSH extension package


 2. Remote connection

Click on Remote Explorer

Click the plus sign next to SSH 

Import:ssh Use name@Washing equipment site< /span>

introduce

  • The first one is saved to the current user
  • The second is to save to all users

 Right-click on the remote connection you just created 

  • If it does not appear here, please refresh this interface or restart vscode and it will appear.

Choose Linux here

Then enter your password and the connection is successful.

  • It may be a little slow the first time, please be patient.

At this time, the connection is successful. Select the file or folder you want to open.


3. Change the remote server name

Open Explorer and click Settings next to SSH

Select the path you just saved

  • The first one is saved to the current user
  • The second is to save to all users

Then change it to a name you are familiar with

 The effect after the change

Guess you like

Origin blog.csdn.net/qq_64042727/article/details/131348584