1e41f4b71Sopenharmony_ci# Configuring the Environment for Remote Access
2e41f4b71Sopenharmony_ci
3e41f4b71Sopenharmony_ci
4e41f4b71Sopenharmony_ciAfter the Windows and Ubuntu development environments have been set up, perform the following operations to enable Windows to remotely access Ubuntu, which is required to transfer images for burning.
5e41f4b71Sopenharmony_ci
6e41f4b71Sopenharmony_ci
7e41f4b71Sopenharmony_ci## Installing the SSH Service and Obtaining the IP Address for Remote Access
8e41f4b71Sopenharmony_ci
9e41f4b71Sopenharmony_ci1. In Ubuntu, open the Terminal tool and run the following command to install the SSH service:
10e41f4b71Sopenharmony_ci   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
11e41f4b71Sopenharmony_ci   >
12e41f4b71Sopenharmony_ci   > If the command fails to be executed and the system displays a message indicating that the openssh-server and openssh-client depend on different versions, install the openssh-client of the required version (for example, **sudo apt-get install openssh-client=1:8.2p1-4**) as prompted on the command-line interface (CLI) and run the command again to install the openssh-server.
13e41f4b71Sopenharmony_ci   
14e41f4b71Sopenharmony_ci   
15e41f4b71Sopenharmony_ci   ```shell
16e41f4b71Sopenharmony_ci   sudo apt-get install openssh-server
17e41f4b71Sopenharmony_ci   ```
18e41f4b71Sopenharmony_ci
19e41f4b71Sopenharmony_ci2. Run the following command to start the SSH service:
20e41f4b71Sopenharmony_ci   
21e41f4b71Sopenharmony_ci   ```shell
22e41f4b71Sopenharmony_ci   sudo systemctl start ssh
23e41f4b71Sopenharmony_ci   ```
24e41f4b71Sopenharmony_ci
25e41f4b71Sopenharmony_ci3. Run the following command to obtain the IP address of the current user for remote access to the Ubuntu environment from Windows:
26e41f4b71Sopenharmony_ci   
27e41f4b71Sopenharmony_ci   ```shell
28e41f4b71Sopenharmony_ci   ifconfig
29e41f4b71Sopenharmony_ci   ```
30e41f4b71Sopenharmony_ci
31e41f4b71Sopenharmony_ci   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
32e41f4b71Sopenharmony_ci   >
33e41f4b71Sopenharmony_ci   > If the message "command-not-found" is displayed after you run the **ifconfig** command, run the **sudo apt-get install net-tools** command to install **net-tools** and obtain the IP address again.
34e41f4b71Sopenharmony_ci
35e41f4b71Sopenharmony_ci   ![en-us_image_0000001215737140](figures/en-us_image_0000001215737140.png)
36e41f4b71Sopenharmony_ci
37e41f4b71Sopenharmony_ci
38e41f4b71Sopenharmony_ci## Installing Remote SSH
39e41f4b71Sopenharmony_ci
40e41f4b71Sopenharmony_ci1. Open Visual Studio Code in Windows, click ![en-us_image_0000001239080359](figures/en-us_image_0000001239080359.png), and search for **remote-ssh** in the Extension Marketplace.
41e41f4b71Sopenharmony_ci
42e41f4b71Sopenharmony_ci   ![en-us_image_0000001285647778](figures/en-us_image_0000001285647778.png)
43e41f4b71Sopenharmony_ci
44e41f4b71Sopenharmony_ci2. Click **Install** next to **Remote-SSH** to install the tool. After the installation is successful, **Remote-SSH** is displayed on the **INSTALLED** list.
45e41f4b71Sopenharmony_ci
46e41f4b71Sopenharmony_ci   ![en-us_image_0000001238880335](figures/en-us_image_0000001238880335.png)
47e41f4b71Sopenharmony_ci
48e41f4b71Sopenharmony_ci
49e41f4b71Sopenharmony_ci## Remotely Connecting to the Ubuntu Environment
50e41f4b71Sopenharmony_ci
51e41f4b71Sopenharmony_ci1. Open Visual Studio Code in Windows, click ![en-us_image_0000001238760373](figures/en-us_image_0000001238760373.png), and click **+** under **SSH TARGETS**.
52e41f4b71Sopenharmony_ci
53e41f4b71Sopenharmony_ci   ![en-us_image_0000001215878922](figures/en-us_image_0000001215878922.png)
54e41f4b71Sopenharmony_ci
55e41f4b71Sopenharmony_ci2. In the **Enter SSH Connection Command** text box, enter **ssh _username_\@_ip_address_**, where *ip_address* indicates the IP address of the remote computer to be connected and *username* indicates the account name used for logging in to the remote computer.
56e41f4b71Sopenharmony_ci
57e41f4b71Sopenharmony_ci   ![en-us_image_0000001215879750](figures/en-us_image_0000001215879750.png)
58e41f4b71Sopenharmony_ci
59e41f4b71Sopenharmony_ci3. In the displayed dialog box, select the default first option as the SSH configuration file.
60e41f4b71Sopenharmony_ci
61e41f4b71Sopenharmony_ci   ![en-us_image_0000001260519729](figures/en-us_image_0000001260519729.png)
62e41f4b71Sopenharmony_ci
63e41f4b71Sopenharmony_ci4. Under **SSH TARGETS**, find the remote computer and click ![en-us_image_0000001194080414](figures/en-us_image_0000001194080414.png) to start it.
64e41f4b71Sopenharmony_ci
65e41f4b71Sopenharmony_ci   ![en-us_image_0000001215720398](figures/en-us_image_0000001215720398.png)
66e41f4b71Sopenharmony_ci
67e41f4b71Sopenharmony_ci5. In the displayed dialog box, select **Linux**, select **Continue**, and enter the password for logging in to the remote computer.
68e41f4b71Sopenharmony_ci   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
69e41f4b71Sopenharmony_ci   >
70e41f4b71Sopenharmony_ci   > To eliminate the need for frequently entering the password for logging in to the remote computer, [set an SSH public key](https://device.harmonyos.com/cn/docs/documentation/guide/ide-registering-public-key-0000001247162706).
71e41f4b71Sopenharmony_ci   
72e41f4b71Sopenharmony_ci   ![en-us_image_0000001215897530](figures/en-us_image_0000001215897530.png)
73e41f4b71Sopenharmony_ci   
74e41f4b71Sopenharmony_ci   After the connection is successful, the plug-in is automatically installed in the **.vscode-server** folder of the user directory on the remote computer. After the installation is complete, reload Visual Studio Code in Windows as prompted. Then you can develop, compile, and burn source code in DevEco Device Tool on Windows.
75e41f4b71Sopenharmony_ci
76e41f4b71Sopenharmony_ci   > ![icon-note.gif](public_sys-resources/icon-note.gif) **NOTE**
77e41f4b71Sopenharmony_ci   >
78e41f4b71Sopenharmony_ci   > If your computer has DevEco Device Tool 3.0 Release or an earlier version installed, the plug-in may fail to be installed, in which case the dialog box shown below stays in the lower right corner of Visual Studio Code. If this is the case, follow the instructions in [Fixing the DevEco Device Tool Installation Failure](https://device.harmonyos.com/en/docs/documentation/guide/faq-device-tool-install-failed-0000001437806813).
79e41f4b71Sopenharmony_ci
80e41f4b71Sopenharmony_ci   ![install-fail](figures/install-fail.png)
81e41f4b71Sopenharmony_ci
82e41f4b71Sopenharmony_ciThe environment for remote access is now set up. As shown below, the IP address of the remotely connected computer is displayed in the lower left corner.
83e41f4b71Sopenharmony_ci
84e41f4b71Sopenharmony_ci   ![en-us_image_0000001338102621](figures/en-us_image_0000001338102621.png)
85