1 Install VSCODE REMOTE SSH plugin
2 Open the plugin configuration shift + ctlr + P, enter remote-SSH: setting
勾选 Always reveal the SSH login terminal.
3 After the plug-in is installed, there will be an additional "Remote Explorer" on the left menu
4 Create a remote configuration
1 Select SSH Targets
2 Click the gear type "Settings" icon and select C: \ user \ administrator \ .ssh \ config from the pop-up selection list
3 Set remote port information
5 Turn on the remote connection to the Raspberry Pi
Note: Raspberry Pi needs to be connected to the internet, vscode will download something
1 Select a configured remote, such as pi3, right click pop-up window to connect
2 After the connection window opens, the platform type selection will appear, select Linux, if there is no selection, the following error will appear
6 Successful connection
7 Open remote folder
7 Open the remote terminal
Click "+"->> bash
8 Other
Connect to Raspberry Pi in vscode powershell ssh
1
|