What Do I Do If a Remote Connection Failed After VS Code Is Opened?
If your local PC runs Linux, see possible cause 2.
Possible Cause 1
Automatically installing the VS Code plug-in ModelArts-HuaweiCloud failed.
Solution
Method 1: Verify that the VS Code network is accessible. Search for ModelArts-HuaweiCloud in the VS Code marketplace. If the following information is displayed, a network error occurred. In this case, switch to another proxy or use another network.
Search for ModelArts-HuaweiCloud again. If the following information is displayed, the network is normal. Then, switch back to the ModelArts management console and try to access VS Code again.
Method 2: If the VS Code marketplace cannot be accessed, manually download and install ModelArts-HuaweiCloud and Remote-SSH.
Method 3: If the error message shown in the following figure is displayed, the VS Code version is outdated. Upgrade the VS Code to 1.57.1 or the latest version.
Possible Cause 2
The local PC runs Linux, and VS Code is installed as user root. When you access VS Code, the information "It is not recommended to run Code as root user" is displayed.
Solution
Install VS Code as a non-root user, return to the ModelArts management console, and click Access VS Code.