Ubuntu system development in VScode SSH remote virtual machine and solving the problem of frequent password input for SSH

1. Install VSCODE and plug-ins

  1. VSCODE can be downloaded directly from the official website
    https://code.visualstudio.com/

Search Remote-SSH in the Vscode app store and install it.
Insert image description here
2. SSH to connect to the ubuntu system
eg: ssh [email protected] or directly enter the IP address 192.168.31.75
Insert image description here
. 3. Select the SSH configuration file, you can directly choose to click the first C .ssh folder in the Users directory of the disk
Insert image description here
4. Connect to the host, use the shortcut keys ctrl+shift+p to enter Remote-SSH, select Remote-SSH: Connect to host and enter the ubuntu SSH ip address, which is the 192.168.31.75 just added or use method 4.1 , and then press the Enter key to reopen a VScode page asking for a password and connection.
Insert image description here
5. Enter the ubuntu SSH connection password and click Enter to connect.

Guess you like

Origin blog.csdn.net/frighting_ing/article/details/129516725