Help Center/ ModelArts/ Troubleshooting/ DevEnviron/ Failures to Access the Development Environment Through VS Code/ Error Message "Load key "C:/Users/xx/test1/xxx.pem": invalid format" Is Displayed
Updated on 2025-06-06 GMT+08:00

Error Message "Load key "C:/Users/xx/test1/xxx.pem": invalid format" Is Displayed

Symptom

Possible Causes

The content or format of the key file is incorrect.

Solution

Use the correct key file for remote access. If there is no correct key file locally or the file is damaged, perform the following operations:

  1. Log in to the console, search for DEW. On the DEW console, choose Key Pair Service and click Account Key Pairs. Then, view and download the correct key file.
  2. If the key cannot be downloaded and the originally downloaded key was lost, create a new development environment instance and a new key file.