VSCODE configures SSH connection server

VSCODE configures SSH connection server

Download VSCODE

Download address: https://code.visualstudio.com/

as the picture shows

Insert image description here

Install

It is best to install to the D drive during installation

Configuration

Install ssh plugin

  1. Open vscode, click Insert image description herethe plug-in button on the left, enter ssh, and search for plug-ins.Insert image description here

2. Find the plug-in in the red frame and click install to install it. A new icon will appear after installation.
Insert image description here

  1. After clicking the icon, move the mouse to the left area to display the following interfaceInsert image description here
  2. Click the plus icon on the right, and a pop-up will appear. Insert image description here
    In the pop-up input box, enter "ssh -oPort=9999 [email protected]"
  • 9999: Indicates the connection port number, write it if necessary
  • abc: indicates the login server user name
  • 123.xxx.xx: Indicates server ip
  1. After inputting, press the Enter key, and the following pop-up window will appear. Insert image description here
    This pop-up window requests to save the saving path of the ssh connection configuration just now. Just select the first one by default.

  2. After saving, you can see that the connection target we just configured has appeared. Insert image description hereRight-click and select Open in this window.Insert image description here

  3. There is also a second configuration method. As shown in the picture, click on the small gear icon marked in red. Insert image description here
    Select the first file in the list below Insert image description here
    and the file will appear as follows:
    Insert image description here

In the file at this time:

  • Host: the name of the server (you can name it yourself)
  • HostName: Connect IP to the server
  • Port: is the connection port number (if none, delete this line)
  • User: Login user name for the server

connection succeeded

After the connection is successful, you can start playing to your heart's content.

Note

Personal record, don’t comment if you don’t like it

Guess you like

Origin blog.csdn.net/qq_55542491/article/details/127155046