Skip to content

VSCODE REMOTE SSH

Note

Have you ever encountered a situation where you want to send local files to a remote server, but always have to edit the files locally and then transfer them to the remote server via ssh or other means, which is very cumbersome? The VSCode Remote SSH plugin can help you solve this problem. It allows you to edit files on the remote server directly on your local machine, and also supports debugging.

Steps

  1. Search for the Remote - SSH plugin in VSCode and install it. remote-ssh
  2. After installation, click the Remote SSH icon in the lower left corner and select Remote-SSH: Connect to Host.... host
  3. Add a new SSH host.
  4. Enter the IP address of the remote server.
  5. Select the configuration file address. If you don't know, choose the default configuration, which is the first one.
  6. In the pop-up box in the lower right corner, select Connect.
  7. Select the operating system category LINUX/WINDOWS/MACOS.
  8. Input the password of the remote host, wait for the connection to be established, and then a new window will pop up for user operation.