VSCode notes under Mac - remote connection server (replace MobaXterm)

1 Introduction

        I used to use MobaXterm software to connect to the server under the Windows system and modify the file content in it. Unfortunately, MobaXterm does not currently support the use of Mac systems, and Mac remote terminal software such as Tabby cannot easily modify server files (using Vim is too troublesome!). This article aims to summarize the notes of using VSCode to remotely connect to the server under Mac to easily modify files on the server.

2--Install the SSH plugin

        Search for the Remote-SSH plugin on VSCode and install it.

​​​​​​​​3-- Remote connection server

①Click the lower left corner to open the remote window→Connect to Host→Add New SSH Host;

②ssh username@hostip;(example: ssh [email protected]

③Enter the password of the corresponding user of the server;

After successfully connecting to the remote server, the ip address of the currently connected server will be displayed in the lower left corner of VSCode :

Open the folder of the remote server in the upper left corner (this step generally needs to enter the password of the server again), and then you can modify and update the file content of the remote server in real time, and then use it with the terminal to achieve the effect in MobaXterm! 

Guess you like

Origin blog.csdn.net/weixin_43863869/article/details/127042836